Bom, comecei a aprender JavaScript, e to com uma dúvida:
Using console.log, on three separate lines, print out the substrings for the following strings.
a. "Jan" in "January"
b. "Melbourne is" in "Melbourne is great" (note the space!)
c. "burgers" in "Hamburgers"
Eu já fiz a "a", "b", mas a "c" eu não sei onde to errando
console.log("Hamburgers".substring(3,9)
e a msg de erro é essa
http://prntscr.com/3fnpm2
alguém ajuda ;-;
Using console.log, on three separate lines, print out the substrings for the following strings.
a. "Jan" in "January"
b. "Melbourne is" in "Melbourne is great" (note the space!)
c. "burgers" in "Hamburgers"
Eu já fiz a "a", "b", mas a "c" eu não sei onde to errando
console.log("Hamburgers".substring(3,9)
e a msg de erro é essa
http://prntscr.com/3fnpm2
alguém ajuda ;-;