Console - Reading Assignment

What is the console used for? Basically it provides you with the ability to write, manage and monitor JavaScript

How do you open the Console in Google Chrome? Go to the Menu at top right of browser (3 vertical dots) then select “More Tools” then select “Developer Tools” then select “Console”

What does console.log function do? It prints any kind of variables defined or any message that needs to be displayed

How can you change the contents of an HTML page through the console? Save a basic html file and load it into the browser of your choice. Open up the Console and begin working with JavaScript to modify the page.

1 Like

1.The console can be used to log information as part of the JavaScript development process, as well as to allow you to interact with web page, the console provides the ability to write, manage and monitor JavaScript on Demand.
2.Open JavaScript console in Chrome by navigate to the menue bar in the right hand corner of the browser window, symbol by 3 dots in a row.
3.Within Console you can type Javascript code. The console is also a function to write messages to log on the debugging console Webkit & Fire bug.
4. We can edit HTML content by double clicking the tag element or content we wish to edit in elements tag by entering new information.

1 Like
  1. A console is basically an inbuilt function of a browser that allows a user to explore the JavaScript that is being used in the context of the webpage that they are using.
  2. By navigating to the menu and going to More Tools (Developer Tools) and then clicking the “console” tab.
  3. It allows you to try out simple code in real time and to see whether or not it works as desired.
  4. You can play around and edit the HTML code by adding JavaScript. However these changes are only temporary and they disappear as soon as the page is refreshed.
1 Like

f12…cool :sunglasses:

1 Like
  1. The console is used for performing Javascript commands
  2. Go top right (next to address bar) down to wed developer then web console or control+shift+K
  3. console.log essentially logs information to the javascript console
    3.You would use the element inside the console… a simple double click would suffice
1 Like
  1. The Console is similar to a shell interface, it is used to log information as part of the Javascript development process. It also allows you to interact with a web page by carrying out Javascript expressions within the page’s context. The Console allows you to try out Javascript in real time providing the ability to write, manage and monitor Javascript on demand.

  2. Keyboard shortcut CTRL+SHIFT+J or:

  • Click the button with three vertical dots in the top right of the browser window
  • Select “More tools” from the drop-down menu
  • Select “Developer tools”
  • Select “Console” tab from the panel
  1. Logs results of an expression in the Console.

  2. Once an HTML file is open in a browser, you can open the Console to modify the page.

1 Like
  1. To test JavaScript code locally.
  2. Through developer tools
  3. Prints out information to the console for you to see.
  4. By using the document element within the console.
1 Like

1. What is the console used for?
It is a browser service similar to shell interface and is used for testing javascript, HTML and CSS code. It helps also to debug and execute commands and check the responsiveness of the code.

2. How do you open the Console in Google Chrome?
You can either open it from the menu of each browser e.g Chrome(menu - more tools - developer tools) or Firefox(menu - web console) or by using a shortcut on the keyboard:
Firefox CTRL + SHIFT + K (Linux and Windows), or COMMAND + OPTION + K (Mac).
Chrome CTRL + SHIFT + J (Linux or Windows) or COMMAND + OPTION + J (Mac).

3. What does console.log function do?
The console.log function is used to print the result of the Javascript code commands directly in the console. Its main purpose is testing and debugging the code.

4. How can you change the contents of an HTML page through the console?
You can do it by entering the Document Object Model (DOM), which is the Inspector tab (Firefox) or Elements tab(Chrome) of the console. To live-edit the code and experiment with it, you need to double click on the element, you want to edit.

1 Like
  1. A console is used for program developers to provide the ability to write, manage,and monitor JavaScript on demand.

  2. 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 click on Developer Tools.
    This will open a panel where you can click on Console along the top menu bar to bring up the JavaScript Console.

  3. The console.log function logs information to the javascript console.

  4. By selecting the elements tab in the chrome browser console window and using javascript language to edit the html doc.

1 Like
  1. The Console is used to write, manage, and monitor Javascript on demand.
  2. Select the 3 vertical dots in the top right corner of the browser, select more tools, then select developer tools.
  3. The console.log function allows you to log Javascript into the console. You can use it to display a message, perform arithmetic, or command it to display things like the time and date.
  4. In the console, you can edit HTML contents in the Elements tab.
1 Like
  1. To log info as part of Javascript development and to interact with a webpage.
  2. Tab - more tools - developer tools - console
    3.used to ask the console to execute a command
  3. Load the HTML page into a browser, open console. Use “document.” command to make changes
1 Like

What is the console used for?
Inspect Elements and see what is gooing on
How do you open the Console in Google Chrome?
F12
What does console.log function do?
print JS Code ; you can add JS code for this session. And for delivering information
How can you change the contents of an HTML page through the console?
via using the function document.AndYourFunction() ; a.e. document.createElement()

1 Like
  1. What is the console used for?
    The console is used to interact with a web page by carrying out JavaScript expressions and to document or “log” the operations carried out.

  2. How do you open the Console in Google Chrome?
    menu tab - more tools - developer tools

  3. What does console.log function do?
    The command to log or print out the function’s value onto the console.

  4. How can you change the contents of an HTML page through the console?
    By changing the HTML code in the elements tab.

1 Like

What is the console used for?

The console provides you with the ability to write,manage, and monitor JavaScript on demand allowing you to interact with a web page by carrying out JavaScript expressions within pages context.

How do you open the console in google chrome?

You would need to navigate to the menu at the top-right of your browser window that looks like three vertical dots in a row, then click on it. From there you select More Tools and then Developer Tools. This will open a panel where you can click on the Console tab along the top menu bar. Or use the short cut keyboard by pressing CTRL+SHIFT+J it will open the console as well.

What does console.log function do?

It Is used to logging it to the Console and print the string to the console instead of having a pop up window showing the string.

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

By using JavaScript code within the context of existing HTML page using the console.

1 Like
  1. What is the console used for?
    It is 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.

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

  • Menu - More tools - Developer tools*
  1. What does console.log function do?
  • It allows you to work with JavaScript by logging it to the Console*
  1. How can you change the contents of an HTML page through the console?
    *Save an HTML file, and load it into the browser then open up the Console and begin working with JavaScript *
1 Like

1)testing Javascript while working on it in a webbrowser
2) right top corner “3 dots” / more tools/developer tools (Command option I on Mac)
3) logs into the java script console
4) through DOM - by using JS you can edit the html page

1 Like
  1. It’s used to log information, and interact with a web page by executing Javascript commands within the context of the webpage.
  2. Shortcut on Mac: COMMAND + OPTION + J.
  3. Logs information to the console.
  4. using the document object.
1 Like

What is the console used for?
The console is used to write, manage, and monitor Javascript.

How do you open the Console in Google Chrome?
Right-click the page, select inspect, and a box will open. ‘Console” is the second option next to elements. (I know this is different from the article.)

What does console.log function do?
This command is used to log information as well as performing math with different variables.

How can you change the contents of an HTML page through the console?
If you are using Chrome, you can change HTML via the ‘elements’ page in the DOC.

2 Likes
  1. It´s used as a shell interface, along with tools to inspect the DOM, debug, and analyze network activity.
  2. 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. The consol log function adds information to the consol.
  4. Rightclick on the content -> select inspect, once the consol is open you can then change the code and directly view the change.
1 Like
  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.

  2. Easy with Command “CTRL + SHIFT + J”

  3. console.log allows the programmer to log data (or objects in most cases) to the JS Console.

  4. We can modify the HTML content using Javascript threw the DOM of the website of which the browser creates.

1 Like