More substring practice


#1


More substring practice

2nd line - not the correct substring... tried out all possible numbers.


console.log( "January".substring(0,3) );
console.log( "Melbourne is great".substring(0,9) );
console.log( "Hamburgers".substring(3,10) );


#2

Hi the substring() work like that

.substring(first, end) //end isn't include

What part of the second string do you want to take?


#3

"Melbourne" which should be (0,9), but it doesnt work :frowning: (10 wont either)


#4

You should print
b. "Melbourne is" in "Melbourne is great" (note the space!)


#5

damn u right, thanks