- What is the console used for?
-It uses along with other tools to inspect the DOM, debug, and analyze network activity. It 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, it provides you to write, manage, monitor Javascript on demand.
2.How do you open the Console in Google Chrome?
-Two ways to open the Console in Google Chrome.
=On the Top-right of the Chrome browser, you can find 3 vertical dots in a row. Press the 3 dots, find more tools then choose developer tools.
= A much easier way, because I have windows, press CTRL + SHIFT + J at the same time can also open the Console Interface.
- What does console.log function do?
-It logs the pop-up alert into the console.
4.How can you change the contents of an HTML page through the console?
-You can’t change the contents of an HTML page, but you can experience modifying HTML pages with the console.
Is there someone who can help me with my answer 4? because my understanding of the article is that you can’t change the content of an HTML through the console but most here they think it can be changed.