More substring practice


#1

<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>

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) );

<do not remove the three backticks above>

#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

■■■■ u right, thanks