0

What is Console.log() for?

I have another app for learning JavaScript but I don't get what Console.log('Example String') is used for.

28th Jun 2016, 9:15 PM
Kevin Duarte
Kevin Duarte - avatar
3 Answers
28th Jun 2016, 9:57 PM
Kevin Duarte
Kevin Duarte - avatar
0
To test if something works!
30th Jun 2016, 6:15 AM
Cocoa
Cocoa - avatar
0
console.log() is used to check whether a part of your code is executing or not. It is accessed on the browser - just right click anywhere and choose 'Inspect Element'. The browser window will split in half & show you multiple options , from there select 'console' tab. It will contain all the data that you have logged using console.log() in your Java script file.
2nd Jul 2016, 9:53 PM
Shardul Singh Rana
Shardul Singh Rana - avatar