Console - Reading Assignment

What is the console used for?

It allows you to write and monitor Javascript within a web browser

How do you open the Console in Google Chrome?

Three dots in the top right corner, more tools, developer tools,

What does console.log function do?

it creates logs within the console rather than pop ups

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

By typing in specific commands

1 Like

1- ) Console is used for managing javascript, writing code or monitoring it.
2-) CTRL + SHIFT + J or menu - other tools - development tools - console.
3-) Helps you to login to the javascript console so you can print something or see what the action you take does.
4-) my dad died when I was filling this 2 days ago

2 Likes
  1. What is the console used for?
    To write certain information from the running script to, and/or to interact with the currently loaded page through js commands inserted directly into the page.

  2. How do you open the Console in Google Chrome?
    Command-Option-J (I’m a Mac guy) and/or through Developer Tools

  3. What does console.log function do?
    Write output to the console

  4. How can you change the contents of an HTML page through the console?
    By writing js commands into the console, for example commands like document.body.innerHTML(…)

1 Like
  1. What is the console used for?
    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. How do you open the Console in Google Chrome?
    Click on View in the file menu, then click Developer, then click Javascript console. Or on a mac you can use the shortcut command + option + J

  3. What does console.log function do?
    The JavaScript 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.

  4. How can you change the contents of an HTML page through the console?
    You can interact with HTML pages DOM (Document Object Model) through Javascript using the “document” object and modifying it.
    Ex. document.body.style.color = “white”;

2 Likes

1. What is the console used for?
The console can be used to log information for development, and for triggering, writing and monitoring Javascript on webpages.
2. How do you open the Console in Google Chrome?
View >> Developer >> Javascript Console or Cmd+Alt+J - (On Mac)
3. What does console.log function do?
Prints to the console
4. How can you change the contents of an HTML page through the console?
You can make changes by modifying the dom of the webpage, such as when we change the background colour using the line: document.body.style.backgroundColor=”lightblue”;

1 Like

What is the console used for?
It is a tool to test, debuging, or see html or JS
How do you open the Console in Google Chrome?
click on 3 dots on chrome, more tools, Developer tools
What does console.log function do?
Creates logs
How can you change the contents of an HTML page through the console?
right click & select "inspect“ with chrome

1 Like

1 the Console provides you with the ability to write, manage, and monitor JavaScript and html, interacting with the websites by commands

2 Menu------more tools-----developer tools--------consola

is the command to back to the console

4 You can chenge the contents of an html through the console using javascript,

1 Like

What is the console used for?
The console allows you to tweak and test your javascript and html code in the browser.
How do you open the Console in Google Chrome?
From the dropdown menu -> more tools -> developers tools -> console.
What does console.log function do?
It’s the bridge between the console and javascript.
How can you change the contents of an HTML page through the console?
You would load the script in with a function within the console.

1 Like

1: The console is used for debugging and test code quickly
2: Control+Shift+I
3: Let see results of commands without printing on the webpage or popping out windows
4: Inspect option

1 Like

What is the console used for?

The console is the place where you can interact and read information about the current web page. IT helps in debugging and inspecting how the page is set up.

How do you open the Console in Google Chrome?

On Mac OS X with Chrome, you can open the Console with Command Option J

What does console.log function do?

It sends output to the console and also allows sending commands and other instructions to the console.

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

You can do that through commands and instructions that modifiy the DOM layout of the target page.

1 Like

1. The console can be used to write, manage and debug JavaScript.

2. CTRL + SHIFT + J

3. Prints the result of the input to the console.

4. You can use JavaScript to change elements.

1 Like
  1. The console allows one to interact with a webpage using Javascript expressions.

  2. Click on three little vertical dots (top right hand corner) to open menu > More tools… > Developer tools > Click ‘Console tab’. Or simply use shortcuts (cmnd + option + J on macOS and ctrl + shift + J on windows/linux).

  3. It prints (logs) the result from the given instruction within the console window (as opposed to printing it on the webpage).

  4. You can write Javascript expressions in the console window, which can change contents and structure in the HTML page. Or you can use DOM (document object model) to identify and edit HMTL elements.

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- navigate to the menu at the top-right of your browser window signified by three vertical dots in a row. From there, select More Tools then Developer Tools.You can see console on the screen.

3- By using this function we can print a string or perform the math and print the result on console.
Additionally, we can work on multiple lines with variables.

4- 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.

1 Like
  1. It can be used to write or edit java script of the current web page.
  2. command+ alt + j or from dev tools-console
  3. It logs the reply within the console
  4. Through the DOM (Document Object Model)
1 Like
  1. Provide you with access to a developer console where you can work with JavaScript in an interface similar to a terminal shell
  2. Top-right of your browser window signified by three vertical dots in a row. Select 'More Tools" then Developer Tools. A panel will be opened and choose Console.
  3. Providing you the result of your question
  4. Make sure you save it after modifying it.
1 Like

1:log info as well as interact with web page
2:linux and windows CTRL+SHIFT+J macos command+options+J
3:logs it to the console
4:right click page inspect element but remember to save elsewhere or it will be reverted back once reloaded

1 Like

1.Console provides you with the ability to write, manage, and monitor JavaScript on demand.
2. Menu bar<more tools< developer tools<console
3. Give the console a command
4. Using the document object

1 Like
  1. the console is used for seeing logged messages, executing javascript code, and debugging
  2. ctrl + shift + J
  3. console.log function prints string to the console
  4. by manipulating the document object, (e.g. document.body.innerHTML = “blah blah blah”
1 Like
  1. The JavaScript 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.

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

  3. It logs the output of Javascript commands or functions and information to the Console.

  4. You can change the contents of an HTML page through Javascript commands in the console or using the DOM (document object model) but these changes won’t be saved in the actual HTML document. Basically, you can right-click on an element and edit it.

1 Like
  • What is the console used for? >> The Console provides the ability to write, manage, and monitor JavaScript on demand

  • How do you open the Console in Google Chrome? >> Click the 3 dots at top right of the browser window, choose “More tools” then “Developer tools”, finally click the “Console tan”

  • What does console.log function do? >> It prints the output of the instructions provided prior

  • How can you change the contents of an HTML page through the console? >> Click the tab “elements” in Chrome or “inspector” in Firefox and double click the item to be edited

1 Like