Console - Reading Assignment

  1. The Console is a browser tool that is used to write, manage and monitor JavaScript on demand.
    2.Menu/ More tools/ Developer tools or Control+Shift+I
  2. Console.log is used to “print” a string in the console.
  3. We can change the contents of an HTML editing the DOM tree that is accessible trough the Console. This Changes will be lost when the website is reloaded.
  1. the Console provides you with the ability to write, manage, and monitor JavaScript on demand
  2. …\More Tools\Developer Tools or CTRL + SHIFT + J
  3. it prints a string to the console
  4. by inspecting an element and modifying it
  1. It is used to write, manage, and monitor JavaScript on demand.

  2. Navigate to the menu, select More Tools then Developer Tools (CTRL+SHIFT+I).

  3. It allows us to work with JavaScript by logging it to the console.

  4. Change the contents by using Inspect, double-click on the element and modify it.

1: it is used for inspecting code.
2: F12
3: it logs what you tell .JS to log in the console.
4: By using the ‘document. “object”

What is the console used for?
The console is similar to a shell interface. It can be used to log information as part of the JavaScript development process and also allows the user to interact with the web page. Through the console, the user can write, manage and monitor JavaScript.

How do you open the Console in Google Chrome?
To open the console in Google Chrome, open menu --> More tools --> Developer Tools. Alternatively, you can use the keyboard shortcut which is Command + Control + J on MacOS.

What does console.log function do?
The console.log function provides output to the command without displaying pop-up alerts.

How can you change the contents of an HTML page through the console?
The user can change the contents of an HTML page through the console by adding JavaScript to modify the page. Other Development Tools such as DOM, which can be viewed through elements also enable users to modify the content. However, these changes will disappear once the webpage is refreshed.

What is the console used for?
Since I have not yet put this tool into practice, it is still unclear to me. But according to the text, it can log information as part of a JavaScript development process. It also gives you the opportunity to interact with a website using JavaScript expressions within the page’s context.

How do you open the Console in Google Chrome?
cmd+option+j

What does console.log function do?
It can be typed in to execute different things, but although I make it work according to the instruction, I am not sure at this point what this is useful for or why it is used.

How can you change the contents of an HTML page through the console?
You change the HTML contents by clicking the “elements” tab next to the “console” tab. From there you can edit in HTML.

  • What is the console used for?
    can be used for logging and to interact with the current context of the page.

  • How do you open the Console in Google Chrome?
    right click -> Inspect

  • What does console.log function do?
    write a text or the result of an expression to the console output log

  • How can you change the contents of an HTML page through the console?
    you can use javascript from the console prompt to interact with the page and change the content.

  1. Console is for immediate output.
  2. Ctrl + Shift + I in google chrome
  3. Console.log is equivalent of PRINT in Python and COUT in C++. Its for immediate output.
  4. Just select the element and change it right away.
  • What is the console used for? The console is used to practice developing Javascript on a real website.
  • How do you open the Console in Google Chrome? Go to three dots menu, click on More Tools, click on Developer Tools, and then choose Console from the menu there.
  • What does console.log function do? It create things within the console.
  • How can you change the contents of an HTML page through the console? Go to Elements (for Chrome) and work there.

What is the console used for?

The console is a useful web development tool which allows you to log and print statements, input JavaScript commands to interact with the elements of the source page and display the DOM with aid of visual tools. It can also display network information.

How do you open the Console in Google Chrome?

I prefer Firefox developer edition and you can use a command shortcut: command-shift-k. If you are using chrome you can right click the source page and selection the option to inspect. I prefer the console to be on the bottom vs. the side which is why I prefer Firefox.

What does console.log function do?

The console.log prints a statement to the console. It will output content stored in variables and can solve equations and logic.

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

Using JavaScript to issue commands to manipulate elements on a webpage. But if you reload the website all of the changes will revert to the prior state.

1.) What is the console used for?

Answer: Allows you to write, manage, and monitor JavaScript on demand.

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

Answer: Keboard shortcut… Ctrl+Shift+J

3.) What does console.log function do?

Answer: Executes or logs in code without popup windows.

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

Answer: You can write your own JavaScript commands or use the DOM

  1. What is the console used for?
    It’s used to help us when we are developing web pages. It can help to experiment some of the Javascript commands or HTML markup codes or CSS styling! Other things are possible such as monitoring web requests traffic or debug javascript code! Very useful!

  2. How do you open the Console in Google Chrome?
    in MAC OS: OPTION + COMMAND + J
    in Linux and Windows OS’s : CONTROL + SHIFT + J

  3. What does console.log function do?
    It logs or writes the text, given as parameter, to the console screen!

  4. How can you change the contents of an HTML page through the console?
    In the Element tab, double click the element you desire to change and it will be opened in edition mode!

  1. What is the console used for?
    The console is used to log information as part of the JavaScript development process, as well as to allow you to interact with a web page by using JavaScript within the page’s text. However the main usage would be to debug JavaScript code
  2. How do I open the console in Google Chrome?
    Select the chrome menu icon, menu_> More tools_> JavaScript Console. Or if the Chrome Developer Tools are already open, press the Console tab.
  3. What does console.log function do?
    i. It can be used for testing and also as an output for an application
    ii. If you use the money sign ($_) without selecting anything with the inspector it will give you an undefined error.
    iii. It can also be used to perform math operations.
    iv. The console can give us errors if a variable is not declared.
  4. How can you change the contents of an HTML page through the console?
    You can change the contents of an HTML page through the console by using the development tools

Thank you very much Rorey, I will do this. Thank you.

1 Like
  1. The Console is one of the modern browser built in tools used to work with JavaScript and other web technologies. It allows you to write manage, and monitor JavaScript on demand.
  2. Menu, More Tools, Developer Tools, Console tab.
  3. The Console.log is the alternative to the pop ups seen show the result of evaluating expressions. We can work with JavaScript by logging it to the Console using the Console.log function.
  4. Once an HTML file is loaded into browser, they can be then opened in Console and JavaScript can be used to modify the page. Adding dynamic information such as the date, amending the look of the page with background colour. However, once page refreshed it will revert back to it’s original look.
  1. What is the console used for?
  2. The console is a sandbox where you can test your code and also see output (for example, error messages), that you wouldn't want displayed on your actual page.

  3. How do you open the Console in Google Chrome?
    1. Navigate to top right of page and click on the triple dot icon and then go to more tools, then developer tools, then click on the console tab
    2. Press F12 and then click on console tab
    3. F12 works the same as ctrl+shift+I
    4. Go straight to console with ctrl+shift+J

  4. What does console.log function do?
  5. Prints to console

  6. How can you change the contents of an HTML page through the console
  7. Still trying to figure this answer out. You can easily edit elements through the inspect elements tab or DOM, but this question asked how to do it through the console! I guess you would just have to call and set html document objects using javascript commands that we haven't learned yet?

What is the console used for?
It can be used for interaction of the javascript engine on a specific website.

How do you open the Console in Google Chrome?
ctrl+shift+j or via the developer tools menu

What does console.log function do?
print on to the console

How can you change the contents of an HTML page through the console?
with javascript commands, adressing the html document objects

  1. Among other things we can use console to monitor, manage and write JS on demand (interact with page by carrying out JS expressions within the page context).
    2.F12 :P:)
    3.console.log writes a message mostly for testing purpouses.
    4.Inspector (Firefox) or Element (Chrome) shows us DOM and we can make some changes by double clicking on html elements or we can put JS commands in console but I assume all those changes are just temporary (until page is reloaded).
  1. What is the console used for?
    The console is mainly used as a way to interact with a webpage by carrying out JavaScript expressions
  2. How do you open the Console in Google Chrome?
    3 vertical dots on the right hand side of the webpage > More Tools > Developer Tools; or “CMD + Option + J” in Mac OS
  3. What does console.log function do?
    It logs/prints to the console the results of a JavaScript expression
  4. How can you change the contents of an HTML page through the console?
    Through JavaScript expressions like document.body, which will address elements on the DOM

1. What is the console used for?

The console provides you with the ability to write, manage and monitor JS on demand.

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

Got to menu (Top right corner), more tools and hit the developer tools.

3. What does console.log function do?

Lets you display the result of your action within the console. e.a. A message or a mathematical result.

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

By entering certain functions. Like

let d = new Date();
document.body.innerHTML = "<h1>Today's date is " + d + "</h1>"

Also by just entering/altering existing html code in the elements tab.