console.log "january".substring(0,3);
console.log "melbourne is great".substring(0,12);
console.log "hamburgers".substring(4,10);
i am trying to understand why this won't work?
console.log() is a function. JavaScript is not Ruby, parens are required :)
Example:
console.log("january".substring(0,3));
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With