Console - Reading Assignment:
1. What is the console used for?
The Console is used to input data when developing with JavaScript, and facilitates interactivity with webpages by allowing you to execute JavaScript expressions that affect the content of the page.
2. How do you open the Console in Google Chrome?
In the right-hand corner of the Chrome browser window, click on the hamburger menu, and navigate to âMore Tools / Developer Toolsâ, and then open the Console within the Developer Tools panel.
3. What does console.log function do?
This function logs JavaScript into the Console, which either prints the outcomes of commands that you type into it, or returns the result âundefinedâ when there is no response.
4. How can you change the contents of an HTML page through the console?
Having saved the HTML page onto your computer, you can then open it with your browser, and interact with it via the Console.
Here, you can modify the HTML, CSS, and JavaScript content, and observe the effect of each change in your browser.