23.more substring practice


#1

console.log("january".substring(0,3) );
console.log("melbourne is great".substring(0,12) );
console.log( "hamburger".substring(3,10) );

Uploading...


#2

Your sub-strings are correct, but the strings aren't.
january should January (uppercase first letter)
melbourne is great should be Melbourne is great(uppercase first letter)
hamburger should Hamburgers (uppercase fist letter, and we have multiply hamburgers so s at the end)


#3

thanks bro !! you save my life !!


#5

I have all of the correct punctuation as far as I can tell but it's still saying I'm wrong. What exactly is it that is wrong here?
"January".substring(0,2);
"Melbourne is great".substring(0,11);
"Hamburgers".substring(3,10);


#6

Never mind, looks like I was completely forgetting the console.log() bit. Duh!


#7

When I did it, the syntax error said unexpected


#8

If you need help, please make your own topic. This topic is devoted to helping pywhiz29476. When creating a topic, include code + error message, otherwise there is very little we can do