Answers:
-
The Console allows one to write, manage and monitor JavaScript on demand.
-
To open JavaScript console in chrome, you have to navigate to the menu at the top-right of the browser window signified by three vertical dots in a row. From this point, one can select more tools then Developer tools. Another option is to use the keyboard shortcut CTRL + SHIFT + 3.
-
Console.log function allows one to work with JavaScript and initiate scripts to see the input and outputs. It provides the space to try out code in real time by allow one to use an environment similar to a terminal shell interface.
-
One can open up the console within the HTML document and begin working with JavaScript to modify the page. A variety of code can be written to carry out the desired inputs to receive the desired outputs. For example, the date in the console as well as the background colour and colour of the text can be changed. In addition, the DOM – Document Object Model contains tools that enable one to inspect and edit DOM elements and helps identify the HTML related to an aspect of a particular page.