Codecadamy JavaScript 23/28


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


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


Could you make it a bit more specific?


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


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