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 to interact with a web page by carrying out JavaScript expressions within the page’s context. The Console provides allow us to write, manage, and monitor JavaScript on demand.
2. How do you open the Console in Google Chrome?
To open the JavaScript console in Chrome, we need to navigate to the menu at the top-right of the browser window an after that select More Tools then Developer Tools.
We can use also keyboard shortcut: CTRL
+ SHIFT
+ J
on Linux or Windows, or COMMAND
+ OPTION
+ J
on macOS
3. What does console.log function do?
console.log allows us to print data in the JaveScript Console
4. How can you change the contents of an HTML page through the console?
The console allow us to experiment with JavaScript code of existing HTML, CSS, and JavaScript.