Console - Reading Assignment

Excellent answers sir, well documented! Please keep them like that :muscle:

Carlos Z.

Thanks mate. Will be doing my best but will reach out if I do get stuck. Cheers

  1. Console provides you with the ability within your browser to write, manage, and monitor JavaScript.
  2. Click on the menu (3 dots) in top right corner of page, then open more tools>developer tools.
  3. The Console.log function enters info into Console.
  4. You can change HTML page contents by accessing the DOM, clicking on Elements (Chrome) or Inspect (Firefox) and double click on an entry to edit it.
1 Like
  1. What is the console used for?

The Console can be used to log information as part of the JavaScript development process, essentially it provides you with the ability to wrote, manage and monitor JavaScript on demand.

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

In Chrome you go to the menu/more tools/developer tools/ console (on panel)

Shortcut (CTRL+SHIFT+J)

  1. What does console.log function do?

It would give you an output instead of a pop-up message. You can use it for more complicated instructions.

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

You can basically play around with the code in any website, but as soon as you reload the page, your changes will be lost.

2 Likes
  1. What is the console used for?

The console is used to log information as part of the javascript development process.

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

Three vertical dots, more tools, developer tools, console

  1. What does console.log function do?

Logs the javascript into the console

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

You can modify a html page but you don’t fundamentally change it and it will be reset if refreshed.

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

You can also enter into the JavaScript Console by using the keyboard shortcut CTRL + SHIFT + J

  1. What does console.log function do?
    it log it into the console

  2. How can you change the contents of an HTML page through the console.
    it allows you change things with in the page useing the console, however those changes “arent set in stone” .
    meaning it wont save your changes

1 Like
  1. The console helps the developer to log information. Basically write, read and execute JS commands.
  2. Console Chrome is open with Ctrl+Shift+J key’s pressing.
  3. console.log() prints param values by console.
  4. Is possible to change content of an HTML page through handling DOM layout elements
2 Likes
  1. Essentially, the Console provides you with the ability to write, manage, and monitor JavaScript on demand.

  2. 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. The function can string words and perform equations.

  4. You can then open up the Console and begin working with JavaScript to modify the page.

1 Like
  1. The console is used to log information in JavaScript as well as interact with the webpage.
  2. Select Menu at the top right corner then tools and then developer tools
  3. It allows you to display output within the console instead of having the popup alerts that you have to click out of.
  4. Use the document object
1 Like
  1. Jscript console of your webbrowser can be used to execute javascript commands within the context of a webpage & log information.

  2. mac = cmd + option + j
    microsoft = ctr + shift + j

  3. put information in to the console if you need to check any variable or result.

  4. elements such as document.createELement() to modify HTML code on page

1 Like

[quote=“ivan, post:1, topic:3109”]

  • What is the console used for?
    To experiment with modifying HTML pages without actually changing the HTML. It is a useful tool for debugging. You can read and learn from the error messages.

  • How do you open the Console in Google Chrome?
    Click the three buttons on the upper right side of browser, hit more tool, and then hit developer tools.

  • What does console.log function do? Allows you to type on the console log without having to allow the function of what was typed in to be to perform. It is more like a log.

  • How can you change the contents of an HTML page through the console? You can use the Elements tab in the developer tools section.

2 Likes
  1. The console is used to write JavaScript within the context of the web page being used.

  2. To open the Console in Google Chrome, one must navigate to the menu (displayed as a row of 3 dots in the upper right hand corner of the browser. There, one should go to “mpre tools” where they would find “developer tools”. Or, use the keyboard shortcut “CTRL + Shift + J” on Windows/Linux.

  3. The console.log function permits the programmer to write code in the context of the HTML web page.

  4. One can change the contents of an HTML page through the console by editing elements using the command “document”.

1 Like
  1. The console allows you to write, manage & monitor JavaScript.
  2. Ctrl + Shift + J
  3. Logs the output of a script to the console.
  4. Invoking the global variable ‘document’ to access elements.
2 Likes
  1. It logs information to the javascript console
  2. You can interact with the pages DOM through Javascript using the “document” object and modifying it.
  3. It logs information to the javascript console
  4. You can interact with the pages DOM through Javascript using the “document” object and modifying it.
2 Likes
  1. What is the console used for?
    It can be used to log information, it allows you to interact with the webpage using javascript expressions. (but it has to be accordinig the context of the page) So it gives you the ability to write, mange and monitor javascript on demand.
  2. How do you open the Console in Google Chrome?
    You open the menu-more tools-developer tools. You can also do ctrl+shift+i on PC
  3. What does console.log function do?
    To my understanding at this point you can use it to log your code and test the code in real time. But i dont understand why in a web browser when you have a text editor or notepad. Maybe it is to very fast and efficient be able to test it since you can just use a shortcut to get there?
  4. How can you change the contents of an HTML page through the console?
    If you write console.log code, you can make changes of the html site
1 Like

1.The console is used to manage actions within a browser.
2. Go to Dev Tools in the menu
3. To print any kind of variables defined before in it or to just print any message that needs to be displayed to the user
4. document element or double click

1 Like
  1. The Console gives you the ability to write, manage and monitor Javascript on Demand.

  2. Two Ways Settings > More Tools, Developer Tools. & Cntr+Shift+J

  3. You can work with Javascript on Console by Logging commands to it. You can do math and work on Variable Lines.

  4. You take a blank HTML File and load it in to the browser of youre choice. You can then load up console and begin to work with Java script on that broswer page.

If any one can help with the anser of 3 im not entirely sure that is accurate. I couldnt get the date request to work.

Rob.

1 Like

thanks i understand answer 3 a lot more now. Some good answers buddy !!!

1 Like
  1. The console is used to modify and add JS commands and functions to the web page

  2. Menu (right top corner)>More Tools> Developer Tools>

  3. Console.log function logs info to the console page

  4. By switching to the elements page, one can inspect DOM Tree elements of the page and modify them

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.

2.)
Settings -> More Tools -> Developer Tools

3.)
For debugging purposes, you can call the console.log() method in the browser to display data.

4.)
Each time a web page is loaded, the browser it is in creates a Document Object Model, or DOM, of the page.
Tools in the browser enable you to inspect and edit DOM elements and also let you identify the HTML related to an aspect of a particular page.

2 Likes