Console - Reading Assignment


#482
  1. What is the console used for?
    Inspect manage alter deploy test JavaScript on demand. You can use JavaScropt in real time, working in an environment similar to a Terminal Shell interface.

  2. How do you open the Console in Google Chrome? You open the Console in Chrome by:
    Top right , dev tools, console. Or right click mouse “inspect”

  3. What does console.log function do?
    logs information into the JavaScript console and logs a value output. make changes without windows pop ups. The output will be contained within the console.experiment and see how you can modify pages. Once you reload the page it will return to a blank document. output your expressions to the console itself, instead of modifying the webpage.

  4. How can you change the contents of an HTML page through the console?


#483

What is the console used for?

The console is used to have the ability to monitor edit and interact within a browser of the underlying HTML site using javascript code. Having a console gives you the power to immediately see changes and additions to a website

How do you open the Console in Google Chrome?

To find the console u can search in the menu for developer tools and find the console there. Or you can use the shortcut p.e. on Mac Command + Option + J

What does console.log function do?

It gives you functionality in the console to have a return inside the console and not on the webpage

How can you change the contents of an HTML page through the console?

To change contents within a HTML site you can use the command innerHTML = something


#484

Javascript Programming

    Answers: What is the Console?

1- The Console can be used to log information as part of the Javascript development process, interacting with a web page and basically writing with Javascript while still being within a browser such as Firefox.

2- To open the Console in Google Chrome one can go to the top right corner of the browser window, marked with three vertical lines or dots, select more tools then developer tools. You can also use a shortcut by pressing CTRL+SHIFT+J.

3- The function of console.log allows the developer to try out Javascript code in real-time and getting some (basic) results, activating the computer to do active calculations, all in real-time, so you can get used to an environment similar to a terminal shell interface.

4- To change the contents of an HTML page through the Console you first load it into the browser and then you open the Console and start working with Javascript to modify the page.


#486

What is the console used for?

Essentially, the Console provides you with the ability to write, manage, and monitor JavaScript on demand

How do you open the Console in Google Chrome?

To open the JavaScript Console in Chrome, you can navigate to the menu at the top-right of your browser window signified by three vertical dots in a row. From there, you can select More Tools then Developer Tools. Click on Console

or Press Ctrl+Shift+J.

What does console.log function do?

To print on javascript without having unnecessary display on a given website

To work math problems

How can you change the contents of an HTML page through the console?

Following steps such as below:

  • define variables: a variable for html element, another for html content. For example p for paragraph element, and t for tag content
  • append variable for content to variable for element. Then append variable for element to the element, and the appended variable for content to the document

Ref this forum: haiku – right click over the element that you want to change and select “inspect”


#487

1. What is the console used for?
Allows you to write, manage and monitor JavaScript on demand in a shell window

2. How do you open the Console in Google Chrome?
Menu(the 3 vertical dots in the top right) --> More tools --> Developer Tools --> Console tab
Or
CTRL + SHIFT + J on Linux or Windows, or COMMAND + OPTION + J on macOS
Or
F12 (windows)

3. What does console.log function do?
Logs or writes the results of your JavaScript within the console window itself in real time. Doing the same thing in a browser window would require a refresh each time you made a change to the code.
Remember the console window and the console.log function are both part of the Developers Tool kit, ie they are tools that help you develop/write JavaScript.

4. How can you change the contents of an HTML page through the console?
Via the document object