Console - Reading Assignment


#462
  1. It’s a way to write, manage and monitor JavaScript on demand within the context of a web-page. It is also useful for logging info as part of the JavaScript development program.

  2. Press F12 then you can click on Console along the top menu bar to bring up the JavaScript Console if it is not highlighted already. You can also enter into the JavaScript Console by using the keyboard shortcut CTRL + SHIFT + J on Linux or Windows, or COMMAND + OPTION + J on macOS, which will bring focus immediately to the Console.

  3. It logs the result of evaluating an expression in the console rather than have pop-up alerts that we need to continue to click out of.

  4. we can use the DOM.
    “These tools enable you to inspect and edit DOM elements and also let you identify the HTML related to an aspect of a particular page. The DOM can tell you whether a text snippet or image has an ID attribute and can let you determine what that attribute’s value is.”


#463

What is the console used for?

It is a console to use Java Script to see live when I develop a script for a homepage and interact with the page live.

How do you open the Console in Google Chrome?

Ctrl + Shift + J

What does console.log function do?

It for example returns the sum of numbers, today`s date and give you back a value after you have inserted more parameters

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

You can go into the DOM under the Elements tab in the console and edit the code. This will reset when you refresh browser.


#464
  1. What is the console used for? - This is a way for you to inject javascript in to a webpage and see what it will do before putting it into your code
  2. How do you open the Console in Google Chrome? - option + command + i
  3. What does console.log function do? - It will do whatever is between the () so if it is a string it will print the string. If it is a math equation it will print the answer to the math equation.
  4. How can you change the contents of an HTML page through the console? You can first make an element with document.createElement and then you can append text to that element.

#465
  1. The console can be used to interact with the elements of the webpage or to execute functions
  2. Control+Shift+I
  3. ‘console.log’ logs a value output
  4. Using the ‘document.’ object

#466

What is the console used for?
Console is used to view, inspect, and modify elements on a web page. Console can also be used to execute JavaScript commands without writing permanent code.

How do you open the Console in Google Chrome?
Menu >> Tools >> Developer Tools or by pressing Control + Shift + I.

What does console.log function do?
Outputs information to the console window.

How can you change the contents of an HTML page through the console?
You can change the content by writing JavaScript commands in the console such as document.body.innerHTML = “…”


#467
  1. What is the console used for? - the Console is a development tool, similar to a shell interface, built in to work with JavaScript and other web technologies.

  2. 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.

  3. What does console.log function do? - it allows direct access to work with JavaScript by logging it to the Console with console.log .

  4. How can you change the contents of an HTML page through the console? - we can use JavaScript commands to dynamically change HTML content of the page but once we reload the page it will return to the original HTML code.


#468

What is the console used for?
It is used to make changes to the web page without having to reload the page every time. Alows for testing without changing the original code.

How do you open the Console in Google Chrome?
ctrl+shift+j or menu+more tools+developer tools

What does console.log function do?
It runs the function we defined and displays the corresponding result.

How can you change the contents of an HTML page through the console?
We need to change to the “Elements” tab and then double-click whatever element we want to change. No definitive changes are made using the console.


#469

1.The Console 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, the Console provides you with the ability to write, manage, and monitor JavaScript on demand.

  1. 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. This will open a panel where you can click on Console along the top menu bar to bring up the JavaScript Console if it is not highlighted already

3.Within the Console, you can type JavaScript code.The JavaScript Console provides you with a space to try out JavaScript code in real time by letting you use an environment similar to a terminal shell interface.

4.You can work within the context of an HTML file or a dynamically-rendered page in the Console. This provides you with the opportunity to experiment with JavaScript code within the context of existing HTML, CSS, and JavaScript.


#470

What is the console used for?

The main usage would be to debug your JavaScript code. The JavaScript Console also provides you with a space to try out JavaScript code in real time by letting you use an environment similar to a terminal shell interface.

How do you open the Console in Google Chrome?

Shortcut keys:

Windows: ctrl+shift+J

Mac Command+Option+J

What does console.log function do?

The console.log() is a function in JavaScript which is used to print any kind of variables defined before in it or to just print any message that needs to be displayed to the user.

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

By typing the JavaScript code into the console you can see how the html page would change with your code, but this is only temporary and doesn’t make any permanent change to the page.