0
What is the use of console in JavaScript playground and for what purpose they are used in real life?
Console in JavaScript playground
3 Answers
+ 2
You can find any warnings and errors on the console, in your JS code. Also, if you want to view some JS stuffs like Objects, HTMLCollections, API response in detail, you can only use console.log(obj_name); you cannot view details of them using document.write(obj_name) or alert(obj_name).
+ 1
Used to output error warnings or output of an obj created.
Happy coding š Keep coding šš¾
+ 1
console is very useful tool. This available to browsers. I am not sure for other browsers. But I am sure about Chrome. Because I uses it daily. console is also used to debug your code. Examples if you write a program that calculates two numbers but it is not working. How you will find what is the error in your code? Check out your console by pressing F12 button on your keyboard. You will get an error messages if your javascript code is wrong