Bug 23. more substring pratice


#1

I have a bug... how do i fix it? XD

// Use console.log( ) to print out the substrings.
// Here is an example of the 1st to 4th letter of "JavaScript"
// console.log("Javascript".substring(0,4));
console.log("january".substring(0,3));
console.log("melbourne is great".substring(0,12));
console.log("hamburgers".substring(3,10));

#2

Could you copy paste your code to the forum? From what i can see, January and Melbourne start with capitalized letters in the example, but not in your code


#3

Edited. Please do not post screenshots unless you first post the actual code and need the screenshot to illustrate a point. Members cannot help very much without going to great lengths on their own time if they have to struggle with a picture, just to read it. Posted code can be copied and run in a jiffy, and it is much easier to read. Thank you.