1. What is the console used for?
The Console can be used to log information as part of the JavaScript development process, as well as allow you to interact with a web page by carrying out JavaScript expressions within the page’s context. Essentially, the Console provides you with the ability to write, manage, and monitor JavaScript on demand.
2. How do you open the Console in Google Chrome?
The easiest way is to open google page on google chrome. Then right click on the emptyspace and choose inspect(the last choise in the column if you have other language) On the right opens a window with the code of the page and on top we have the option “Console”.
3. What does console.log function do?
Console function actually prints what we will write in the function after we press enter and will saw it to us under the function command, instead of sending a pop up window. Or will give us the answer on a mathematical question. It will actually give us the resold of any function we write
4. How can you change the contents of an HTML page through the console?
The Console provides you with a space to experiment with modifying HTML pages, but it is important to keep in mind that you’re not changing the HTML document when you do things on the Console. In this case, once you reload the page it will return to a blank document. You can always load a webpage on the browser open the console and starting “coding” on the console and see the results. What chanches you like copy and paste on another file.