1. What is the console used for?
The console is used to log information so the developer can make sure the JavaScript is working as intended.
2. How do you open the Console in Google Chrome?
The easiest method is by pressing F12. Otherwise from the top menu go to View > Developer > JavaScript Console or navigate to the three vertical dots in a row at the top-right of the browser window. From there select More Tools then select Developer Tools.
3. What does console.log function do?
It points the output to the console itself where it can be viewed as opposed to it displaying as a pop-up alert on the website.
4. How can you change the contents of an HTML page through the console?
You can modify an HTML page by writing JavaScript in the console to preview changes. You can use the Document Object Module (DOM) from the Elements panel in Chrome or live edit a DOM node by double-clicking and editing HTML elements. These changes do not change the actual HTML document directly. For a permanent change, save the changes in the HTML source file.