Console - Reading Assignment

1 console is used to execute command
2 open by pressing cntrl shift j
3 console.log function logs in info
4 ?

  1. What is the console used for?
    It’s similar to a shell interface. It’s used to log info as part of the dev process, as well as allow you to interact with a web page by carrying out JS expressions within the page’s context.

  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 logs your output function to the console.

  4. How can you change the contents of an HTML page through the console?
    You can directly change the html file on the console. Changes must be saved or it will rerender to previous version.

1 Like
  1. What is the console used for?
    Write, manage and monitorize JS commands on browser

  2. How do you open the Console in Google Chrome?
    CTRL+SHIFT+I in Brave Browser

  3. What does console.log function do?
    keeps logs info to JS

  4. How can you change the contents of an HTML page through the console?
    Double click on tag you want to change/edit

2 Likes
  1. The console is used for writing and editing Javascript, HTML and CSS on the browser.
  2. You can open the console in Google Chrome with cmd+alt+j or in the browser’s menu, selecting More tools and then Developer tools.
  3. console.log is used to log in the console.
  4. To change the content of an HTML page by creating, appending and erasing elements or nodes. Like in the tutorial example: "let p = document.createElement(“P”);” creates a paragraph element, then we create a text node: “let t = document.createTextNode("Paragraph text.”);” we’ll append the text node to the variable p: “p.appendChild(t);” and finally append to the document the variable p, wich has a paragraph element and an appended text node with “document.body.appendChild§;”
1 Like
  • What is the console used for?
    The console is used to interact with the site and gives us the ability to write, manage and monitor javascript code.

  • How do you open the Console in Google Chrome?
    Go to “customize and control google settings” hover over “more tools” and select “Developer tools”.

  • What does console.log function do?
    It allows us 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?
    ** In console you use the document.body command**
    In the “Elements” section you can double click a selected element to edit it.

1 Like
  1. What is the console used for?
  • The Console provides you with the ability to write, manage, and monitor JavaScript on demand.
  1. 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. 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.
  1. What does console.log function do?
  • Rather than have pop-up alerts that we need to continue to click out of when you use the alert() function, we can work with JavaScript by logging it to the Console with console.log. It gives an output within the console.
  1. How can you change the contents of an HTML page through the console?
  • Use document.body to make changes or add content to the body.
1 Like

1- The console is used as a development aid in seeing how modifications will affect the page you are viewing. It is temporary and disappears when refreshed.
2- Use ctrl-shift-J
3 - console.log allows you to log info in the console tab of the developer tools, and to test the code in a temporary way
4 - by using the document element within the console

1 Like
  1. What is the console used for?

A. Allows you to run your java programming and test as you go along

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

A. Top right corner (3 dots) - more tools - developer tools

  1. What does console.log function do?

A. Console.log generates output to console

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

A. In the “element tab” right click

1 Like
  1. What is the console used for?
    The console is used for writing, managing, testing, and monitoring Javascript directly in a modern web browser with a terminal shell interface.

  2. How do you open the Console in Google Chrome?
    In Google Chrome, the Console can be found by clicking the menu at the top-right corner (signified by three vertical dots in a row) and select More Tools and then Developer Tools in the menu. A panel will be opened and the Console can be located in one of the tabs of the panel. The keyboard shortcut for the Console is Ctrl+Shift+J.

  3. What does console.log function do?
    The console.log function prints output to the Console itself.

  4. How can you change the contents of an HTML page through the console?
    The Console allows us to test modifying a HTML page by writing Javascript codes with HTML selectors to target actions on specific HTML elements. The modification is temporary, though; the webpage will revert to its original after refresh.

1 Like
  1. The Console provides you with the ability to write, manage, and monitor JavaScript on demand.
  2. right-click -> inspect
  3. Exactly what it says it does: logs something to the console.
  4. Lot of ways. I’m surprised how many suggestions I have after writing document.body or document.head in the console.
1 Like

What is the console used for?- Javascript development on browsers and other websites to write, monitor and manage javascript development. Edit the page and play about with it to see how different code effects the website before implementing it.

How do you open the Console in Google Chrome?- click on the three dots in the corner of the webpage-click more tools developer tolls, console.

What does console.log function do? It’s logs into the console.

How can you change the contents of an HTML page through the console? Inspector in firefox.

1 Like
  1. The console is a developer tool built into the browser that allows you to interact with that particular web page using JavaScript.

  2. Hamburger icon in top right > More tools > Developer tools > Console.

  3. Console.log function is the beginning of a command.

  4. You cannot change the contents of a web page permanently through the console. Once you reload it will return to its original state. The only way to do this (I believe) is to save your work in the console to be launched via hosting.

1 Like
  • What is the console used for?
    Ans: The console is used for making immediate changes to the content of the web page in which the console is open.

  • How do you open the Console in Google Chrome?
    Ans: I’m using Safari so I hope it’s okay that I reply to the question ‘How to open the Console in Safari?’. In Safari, you go to Safari > Preferences > Advanced > Enable ‘Show Develop in Menu Bar’ …Then you click on Develop from the top menu bar and then click “Show Javascript Console.”

  • What does console.log function do?
    Ans: The function console.log is used to display content on the console. This content can be any string, math calculations, any object, etc.

  • How can you change the contents of an HTML page through the console?
    Ans: You write certain code in the console which will then display the contents on the HTML page. For example, you can use document.body.innerHTML and/or document.body.appendChild() to add or change contents of an HTML page.

2 Likes

CONSOLE:
Q). What is the console used for?
A). 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. (Very useful when testing)
How do you open the Console in Google Chrome?
A). JUST PRESS THE F12 KEY.
Q). What does console.log function do?
A). 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. Parameters: It accepts a parameter which can be an array, an object or any message.
Q).How can you change the contents of an HTML page through the console?
A). bY USING The DOM node context menu, which you may recognize from the elements panel, is also present in the console panel. Log a DOM node to the console. Right click on it. Select Edit as HTML or Edit Text.
By doing so you can insert JS and manipulate the page content. (good for live testing in my humble opinion).

2 Likes
  1. To manage, write and monitor Javascript in a browser.
  2. Ctrl+Shift+ J.
  3. Console.log is used to output something to the console.
  4. By using javascript, you can change the contents of an HTML page through the console.
1 Like

What is the console used for?
—assists with writing, managing, and monitoring JavaScript on demand

How do you open the Console in Google Chrome?
—go to the menu icon, click on more tools, developer tools, then click on console (command + option + J)

What does console.log function do?
—it’s an input function to write JavaScript

How can you change the contents of an HTML page through the console?
—open the .html in the browser and access console there

1 Like
  1. What is the console used for?
    The console is used to make changes to your JavaScript commands right on your browser.

  2. How do you open the Console in Google Chrome?
    You can open the Console while in Chrome by going to the custumoize settings, “more tools”, web developer tools or pressing on our keyboard, control shift I or press F12 on your keyboard.

  3. What does console.log function do?
    The console.log is a function that lets the user write any type of variables or any message, usually for debugging with such webkits such as Webkit. It will be invisable to the web page.

1 Like
  1. The console is used for writing, managing and monitoring JavaScript on demand.
  2. The console in Google Chrome can be opened by clicking the Menu -> More Tools -> Developer Tools from which we can click on Console or by using keyboard shortcut CTRL + SHIFT + J on Linux or Windows, or COMMAND + OPTION + J on macOS.
  3. Console.log function helps us to work with JavaScript by logging it to the Console.
  4. We can change the contents of an HTML page through the console by writing JavaScript code.
1 Like
  1. The console is used to debug and analyze activity. You can also log information, and can interact with a webpage.

  2. F12

  3. Console.log gives you an output in the console.

  4. You can find what you would like to change and use the document element.

1 Like
  1. A console is a tool built into browers which allows you to write, manage and monitor JavaScript.

  2. It can me accessed by finding the 3 dots at the top of your browser and then selecting developer tools. from there you go to console.

  3. console.log let’s you check what the output will be and let’s you calculate equations.

  4. By opening an HTML file up in your browser and then opening up the console.

1 Like