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?
Command+Alt+J
3. What does console.log function do?
Allows one to log commands and their resulting actions inside of the console instead of relying on pop-up windows as with the alert function.
4. How can you change the contents of an HTML page through the console?
Save an HTML file, and open up the console. Write the code inside the console and the webpage will be updated in real-time. Once you refresh the page, the code will be gone so make sure to save your work!