I am learning Javascript and don't understand why the indexOf below returns -1:
var string = "The quick brown fox jumps over the lazy dog";
console.log (string.indexOf("good"));
See Question&Answers more detail:osI am learning Javascript and don't understand why the indexOf below returns -1:
var string = "The quick brown fox jumps over the lazy dog";
console.log (string.indexOf("good"));
See Question&Answers more detail:os