+ 1
What's the difference on these JS
I'm new to this and it's been bugging me. What's the difference between JS that uses "script" and JS that uses "console.log"?
1 Answer
+ 4
You're confusing:
JS is a language, it use "scripts" wich are kind of commands list to execute.
"console.log" is one of the available built-in command (in web environment at least) used to output some stuff outside of the "normal" output (for debug purposes mainly): it's just a useful way to simply do output without taking care or web output environement requirements ;)