check if a string starts with a substring js code example
Example: check if string starts with javascript
var str = "Hello world, welcome to the universe.";
var n = str.startsWith("Hello");//true
var str = "Hello world, welcome to the universe.";
var n = str.startsWith("Hello");//true