Exercise 23 incorrect substring


#1

This is the code I entered:
console.log("january".substring(0,3));
console.log("Melbourne is great".substring(0,12));
console.log("Hamburgers".substring(3,10));

The red error message at the bottom shows that I selected the wrong substring from January, but nowhere else. I am confused, can anyone point out an error?


#2

It should be January - with an uppercase J.


#3

lol, thank you! that fixed it. :smile:


#4

I have the same thing, but uppercase J didn't fix it for me


#5

If you post your code then someone will help you spot the problem.

If you need it: How to post code in this forum.


#6

had the same problem..thanks a lot guys am on a coding streak now


#7

don't put //console.log
just use console.log
the // messes it up


#8

// are used to indicate comments


#9

Thanks guys! I appreciate all the help