Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2
Js can run at back end, it's node.js framework. console.log() usually outputs in javascript console of what's in its parenthesis, used for testing purpose of an application. While documentation.write() outputs on DOM. let keyword is used to declare variable in es6 because to not let the same variable declared again. While in var keyword you can re declare the same variable again and again which can cause some bugs as the application gets larger.
6th Nov 2019, 6:03 AM
Yathin Babu
Yathin Babu - avatar
+ 2
Yathin Babu Just letting you know there's a typo in your answer 'nose.js' => 'node.js'
6th Nov 2019, 6:28 AM
Ipang
+ 2
Oops auto correct by my keyboard 😅 thank you for letting me know.
6th Nov 2019, 10:42 AM
Yathin Babu
Yathin Babu - avatar