Codecadamy JavaScript 23/28


#1

Here is my code, says SyntaxError unexpected string

console.log "January".substring(0, 4));

console.log "Melbourne is great".substring(0, 11));

console.log "Hamburgers".substring(3, 10));


#2

it is console.log(), everything you want to log to the console should be in the brackets


#3

Could you make it a bit more specific?


#4

in which way is this not specific? console.log() logs everything to the console which is between ( and ), so if you want to log something:

console.log("i am getting logged");

#6

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.