Console - Reading Assignment

  1. The console is used to test javascript code and see real time results
  2. More Tools, Developer Tools
  3. Console.log function spits out the result for the function in the console.
  4. The element function inside the console is where you change the contents of an html page.
1 Like

|-|What is the console used for?|

To log information – allow interaction with web page by using JavaScript within the page|
Provide the ability to write, manage and monitor JavaScript on demand |

|-|How do you open the Console in Google Chrome?|
Shift+ctrl+j|

|-|What does console.log function do?|

Print String, Math calculations, work with multiple line variables |

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

By using development tools like DOM – Document Object Model |
Need to keep in mind that when working on the consoles, we are not changing the HTML document|

1 Like
  1. The console is used to input commands fro JavaScript. Debugging or making inspections of the coding on the web-page.
  2. Control shift I/J
  3. the console.log Function adds data to the console.
    4.Save the desired code for an HTML file then load it into the browser of your choice. document.createElement (element) creates an HTML element
1 Like
  1. What is the console used for?
    The console helps write, manage, and monitor JavaScript on demand within the page’s context. It’s used to:
  • Log information in the JavaScript development process
  • Interact with a web page by carrying out JavaScript expressions.
  1. How do you open the Console in Google Chrome?
    Menu>>More Tools>>Developer Tools or right click>Inspect>Console

  2. What does console.log function do?
    With console.log, the output of the JavaScript code is logged directly into the console. This avoids the need to constantly click out of ‘pop-up’ alerts.

  3. How can you change the contents of an HTML page through the console?
    The console allows us to experiment with and modify HTML pages, but it does so without actually changing the page - i.e. after refreshing the page, it will return to its original state.

1 Like
  1. What is the console used for?
    It is a developer tool that allows you to apply JavaScript to a HTML file.

  2. How do you open the Console in Google Chrome?
    I don’t know, I am using Brave.

  3. What does console.log function do?
    It makes the JavaScript print the output to the console for editing or debugging.

  4. How can you change the contents of an HTML page through the console?
    By going to the Document Object Model of the page.

1 Like
  1. What is the console used for?
    Browsers have built in tools to help with development, one of these tools is called the Console. The console can help log information and allow a programmer to interact with a website using JavaScript expressions within the JavaScript process. This means you can write, manage and monitor JavaScript whenever needed.

  2. How do you open the Console in Google Chrome?
    Modern browsers provide you with access to a developer console. Here with an interface like a terminal shell you can work with JavaScript.
    On fire fox the keyboard shortcut to open the console is; CTRL + SHIFT + K
    Google is; CTRL + SHIFT + J
    There are also ways to find the console using the menu bar on each browser. With Google chrome you can go to the menu icon, more tools, developer tools and find console.

  3. What does console.log function do?
    When trying out JavaScript in real time, typing in console.log lets you do so without seeing pop-ups and alerts on screen. It is still logged into the console as part of whatever development you are trying to execute within the JavaScript protocol and process.

  4. How can you change the contents of an HTML page through the console?
    When you write/modify a web page using HTML and JavaScript code in the console you can see the effects on the page in real time but these changes are not permanent, you can refresh and the page will go back to it’s original state before you started adding code in the console.

1 Like
  1. What is the console used for?

The console is a tool used to modify code in real-time, without needing to refresh the browser. It allows you to modify, tinker and test your code before permanently changing the code’s source documents. The console also offers an array of helpful tools to accomplish other tasks relating to the development of your website.

  1. How do you open the Console in Google Chrome?

Navigate to the top-right of your browser
 Click menu, more tools, then developer tools.

  1. What does console.log function do?

Console.log is used to display what you’re focusing on in your code or webpage, to the console in order to further test added features, debugging, or while implementing changes.

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

You can change contents of an HTML page in real-time, in order to see and test your newly coded functionality. You will, however, need to save these changes to the actual HTML document if you wish to keep them permanently.

1 Like

1. What is the console used for?

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

2. How do you open the Console in Google Chrome?

By either navigating to it in the menu. Or better by pressing command + option + i for mac.
Or control + shift + i for windows.

3. What does console.log function do?

we can 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?

You cannot permanently change an existing HTML page, anything you do in the console on an existing website is only until you refresh the page.
“its only to experiment”.

1 Like
  1. What is the console used for?
    The console can be used to execute JavaScript commands within the context of a webpage and/or log information.

  2. How do you open the Console in Google Chrome?
    In the hamburger menu, open Other Tools > Developer Tools and click the tab for Console.

  3. What does console.log function do?
    It logs information to the JavaScript console.

  4. How can you change the contents of an HTML page through the console?
    You can then open up the Console and begin working with JavaScript to modify the page.
    Also, using the inspector tab, double-click a selected element and make changes.

1 Like
  1. What is the console used for?
    The JavaScript console allows you to use function commands in the browser.

  2. How do you open the Console in Google Chrome?
    Ctrl+shift+I

  3. What does console.log function do?
    Users to log into the console without the pop up alerts.

  4. How can you change the contents of an HTML page through the console?
    with the functions using JavaScript

1 Like

-What is the console used for?

Essentially, to write, manage and monitor Javascript when we want to

-How do you open the Console in Google Chrome?

Go to the top-right menu
1 Select « more tools »
2 Select « developper tools »

-What does console.log function do?

This log javascript in the console, so we can try out our code in real time

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

We enter the right commands in the console to change whatever we want to, but this doesnt change the code of the html page, if we reload the page will get back to its previous aspect.

1 Like
  1. Console provides you with the ability to write, manage, and monitor JavaScript on-demand with a webpage.
    2.Right-Click Inspect. Also CTRL + SHIFT + J
    3.It allows you to view the changes made to the layout of a page without actually making permanent changes. 4. Typing in the associated commands in the console to modify it.
1 Like
  1. What is the console used for?

It gives you a way to write, manage, and monitor Javascript on demand.

  1. How do you open the Console in Google Chrome?

CTRL + SHIFT + J on Linux or Windows, or COMMAND + OPTION + J on macOS

  1. What does console.log function do?

Logs stuff to the console

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

Open the console and modify the code

1 Like
  1. Console is used for debugging the code of a Webpage and to make alterations on your Local Network/ Machine.
  2. More tools> Developer tools
  3. Console.log is used to seek informations on variables or their results .
  4. Double clicking on the element or tag and then we can edit it using the Console web development tool.
1 Like
  1. The console is used to log information and carry out JavaScript expressions.
  2. F12 Key. You can also use the shortcuts CTRL+Shift+J for Windows or Command+Option+J for Mac.
  3. The console.log function prints any message that needs to be displayed to the user and also prints any variables previously defined in it.
  4. Once you save and upload an html file to a browser you can then open the console and begin working with JavaScript to modify the page; via double-clicking the selected element in the DOM to make changes.
1 Like
  • What is the console used for?
    Put javascript code directly. You don’t need an interpreter or other tools is directly(native)
  • How do you open the Console in Google Chrome?
    Choose more tools then console
  • What does console.log function do?
    Print to the console a string or operation or almost anything you put in.
  • How can you change the contents of an HTML page through the console?
    With every instruction for javascript you put in, and you dont need to reload the page to check. But if you are gonna to reload you lost everything you do except the original content of the html file.
1 Like
  1. The Console is used to log information as a part of JavaScript development process.Console provides you with ability to write, manage and monitor JavaScript on demand.
  2. Shift+CTRL+J (on Windows/Linux)
    3.Removes the need for pop up alerts that require you to click out of
    4.You open the console and change the variables however the changes are only temporary and once the page is refreshed all the changes made in the console are gone.
1 Like

  1. To manage, write and monitor JavaScript in a browser.
  2. MenuâžĄïžMore toolsâžĄïžDeveloper ToolsâžĄïžConsole.
  3. Print outputs directly on the console.
  4. Change the HTML in the elements tab.
1 Like
  1. A console is an interface that allows you to interact with the DOM using Javascript.
  2. Press F12.
  3. It returns the result of an expression to the console.
  4. Through the document object.
1 Like

1. Console is used to execute Js commands inside the browser.
2. ctrl+shift+J or F12
3. consol.log function displays output of commands in the console
4. By using the element tab/DOM

1 Like