Console - Reading Assignment

Answers:

  1. The Console allows one to write, manage and monitor JavaScript on demand.

  2. To open JavaScript console in chrome, you have to navigate to the menu at the top-right of the browser window signified by three vertical dots in a row. From this point, one can select more tools then Developer tools. Another option is to use the keyboard shortcut CTRL + SHIFT + 3.

  3. Console.log function allows one to work with JavaScript and initiate scripts to see the input and outputs. It provides the space to try out code in real time by allow one to use an environment similar to a terminal shell interface.

  4. One can open up the console within the HTML document and begin working with JavaScript to modify the page. A variety of code can be written to carry out the desired inputs to receive the desired outputs. For example, the date in the console as well as the background colour and colour of the text can be changed. In addition, the DOM – Document Object Model contains tools that enable one to inspect and edit DOM elements and helps identify the HTML related to an aspect of a particular page.

1 Like
  1. console is used to write, manage, and monitor the characteristics of the HTML or XHTML files while working with javascript to allow modification; i.e. Web pages.

  2. Click on the 3dots in upper right hand side of display bar, now go to the option “more tools”, now click on developer tools, what comes up will have an area of the upper window with tabs… select “console”…Or save yourself the play by play and just press control+shift+j and the console option will be in the upper windows tabs.

  3. Console.log creates a record of things in the background of the webpage.Almost like a time stamp in the coding since it is not available to the web page user.

  4. By using javascript in console and appending inputs to the elements of the HTML.

2 Likes

Q: let’s say I have changed the html in the console and I like how it works.

How do I save the “new” html code, since I do not want it to disappear when I reload the page?

(In the Console (Chrome) I cannot find a “save” button.)

You will have to copy the code and paste in your code editor or notepad to save it on your machine. Save it as the .html format.

Happy Learning.

A.Malik

The console is used to experiment with and modify JavaScript on demand.

(For the Brave Browser) Click “View” > “Developer” > “Developer Tools”

The console.log function “logs” information into the console.

You can save changes to your HTML document elsewhere, but the console itself doesn’t actually modify the underlying save file. You modify contents using the document element within the console.

2 Likes
  1. The console allows you to interact with a web page through JS , you can write manage and monitor JS on demand and test your code locally
  2. CTRL - SHIFT - J
  3. Work with JS by logging it to the console and avoid having to click out of pop ups
  4. Open the elements tab in the console whereupon you can click on element , tag or attribute you wish to edit
1 Like
  1. to log information and interact with JavaScript expressions within the page
  2. F12
  3. prints an output of a function. you can use it to verify that the code is acting like it should
  4. by using functions such as document.body.innerHTML and document.body.appendChild(), you can insert new lines into the HTML. you can modify the styles of elements as well.
1 Like
  1. What is the console used for?
    The Console is used to inspect the DOM - Document Object Model, Debug, and Analyze network activity, in addition to providing you with the ability to write, manage, and monitor JavaScript on demand.

  2. How do you open the Console in Google Chrome?
    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?
    console.log function output data into the Console, and not on the webpage.

  4. How can you change the contents of an HTML page through the console?
    Under the Elements tab, you can double click on the element tag to make changes.

1 Like
  1. The console is used to write, monitor and manage Javascript on demand typically in the context of a web browser

  2. ☰ —> More Tools —> Developer Tools —> Console // CTRL + SHIFT + J on Windows/Linux // COMMAND + OPTION + J on Mac OS

  3. Prints out the result within the console itself.

  4. Changes can be made via the Elements tab, this section looks very similar to the HTML format and changes can be made and saved.

2 Likes

1.- It is used to modify text, color, paragraphs on the web site.
2.- You go to “Settings”; “More tools”; “Developer Tools”
3.- The function allows you to open up changes like for example dates, math and other things.
4.- By writing the comands but if you do not save them on your working file the it goes back the way it used to be.

1 Like

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

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:

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.

What does console.log function do?
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?
The Console provides you with a space to experiment with modifying HTML pages, but it is important to keep in mind that you’re not changing the HTML document when you do things on the Console. In this case, once you reload the page it will return to a blank document

1 Like

1. What is the console used for?

The Console gives the ability to write, manage and monitor on demand within the browser.*

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

In the menu at the top right (three dots), hover over more tools, then developer tools.

3. What does console.log function do?

It logs Javascript to the console

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

It is possible to experiment with Javascript, on any website that already contains HTML, Javascript or CSS. Unless you want to lose your progress make sure to save your work to be able to access it at a later stage.

1 Like
  1. What is the console used for?
    The console is a testing area to test the code.

  2. How do you open the Console in Google Chrome?
    In the right top corner menu --> More tools --> Developer Tools --> Console Tab.
    Other possibility is to press CMD + OPTION + J on mac

  3. What does console.log function do?
    Console.log is used to output something to the console

  4. How can you change the contents of an HTML page through the console?
    This is done via the DOM (Document Object Model)

1 Like
  1. The console allows you to write, manage, and monitor javascript within a webpage
  2. top right dots > more tools > dev tools
  3. get output within the console
  4. by using the document. element inside the console.
1 Like

@HemalT thanks . this is easy to understand from your reply. im
new to this programming.thanks

1 Like

1, A console is a browser tool built in to work with Java script and browsers. A console provides me with the ability to write, manage and monitor Java script on demand.
2. Open chrome .Right click and select inspect. Click inspect and open chrome developer tools. select console.
3. Console.log is a function in Javascrpt used to print any kind of variables defined before in it or just print any message that needs to be deployed to the user. You can use the console to do math’s using JavaScript. You can also work on lines with various variables in the console using JavaScript… You can also edit or modify a command that you passed through the console.
4. By inserting Js scriptcode in the body at the end of the html page and using Javacript commands to edit the HTML page

2 Likes
  1. to interact with the webpage
  2. in windows: with ctrl+shift+J or look under developer tools
  3. logs info in the javascript console
  4. with DOM (just change the topic above from console to elements) or just right click and investigate
2 Likes
  1. The console is used to write, manage and monitor Javascript on demand within the context of a web page.

  2. First go to ☰ menu on the right top side of the browser, then go to “more tools”, and “tools for developers”, there is the Console, beside Elements. Or you can use the shortcut “Ctrl+Shift+J” on windows.

  3. Allows you to print the function value in the console.

  4. Using the elements tab beside the console tab.

1 Like

Within the Console, you can type JavaScript code. 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. 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. You can write, manage, and monitor JavaScript on demand.

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.

The console.log function executes the code in the console while it not publishes it on the website.

You can edit elements in the inspector, by double clicking on the given element.

2 Likes
  1. What is the console used for?
    The console is used for diagnosing and debugging code.

  2. How do you open the Console in Google Chrome?
    The console can be accessed in Chrome by selecting the More Tools > Developer Tools, or using a shortcut Option + ⌘ + J on macOS

  3. What does console.log function do?
    The console.log function prints defined variables, or messages to be displayed to the user.

  4. How can you change the contents of an HTML page through the console?
    The console can view and edit HTML elements by opening the inspect window.

1 Like