23 More substring practice


#1

console.log("Juanury".substring (0,3) )
console.log("Melbourne is great".substring (0,10) )
console.log("Hamburgers".substring (3,10 ) )

gives an error message
Oops, try again. You didn't select the right substring from 'January'.


#2

The substring may be correct, but the spelling is not.


#3

Oops, try again. There was a problem with your syntax.


#4

Misspelling of. January will cause a problem.


#5

I corrected the error and now on the next line
Oops, try again. You didn't select the right substring from 'Melbourne is great'.


#6

Is the output supposed to be, Melbourne is? That will take 12 characters, not 10.


#7

thank you so much. I feel like an idiot)


#8

Don't, we all make mistakes, many of them can cause us to blush, but it is only human. Be easy on yourself. Forgive and forget.


#9

A post was split to a new topic: Then what is wrong with these


#10