Console - Reading Assignment

  1. to test or modify the the javascript command.
    2.cntrl shuft J
  2. log things onto the console
  3. double click on the content on element section
1 Like
  1. What is the console used for?
    Interacting with a web page by carrying out javascript commands.

  2. How do you open the Console in Google Chrome?
    Go to: Menu/More Tools/Developer tools

  3. What does console.log function do?
    It writes messages to the console.

  4. How can you change the contents of an HTML page through the console?
    By inputting a JS command or by editing the HTML elements directly.

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 one to interact with a web page by carrying out JavaScript expressions within the page’s content. Basically, the console provides developers with the ability to write, manage, and monitor Javascript on “demand”

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

You can open it by using “ctrl+shift+I” or by clicking the Google “customize and control google chrome” tab located next to the web search tab at the top right corner of a google web browser. when one clicks on the “customize and control google chrome” tab, a small window will open that offers the user a few option; one of those options is “more tools.” By clicking the “more tools” tab, another small window with even more options will open, and we can find the “developer tools” tab, which will give use access to developer tools which includes the “Console.”

  1. What does console.log function do?

it allows a developer to work with JavaScript expression by running it through the “console.log” function, and it creates a space to try out and experiment with JavaScript code in real-time by letting a developer to use an environment similar to terminal shell interface.

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

You can load an HTML page and then open the developer tools and write JavaScript expressions (code) on the console to modify the HTML page because of the DOM feature created when a browser loads an HTML website. The DOM is a node that can be modified using JavaScript.

1 Like

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

  • What is the console used for?
  • How do you open the Console in Google Chrome?
  • What does console.log function do?
  • How can you change the contents of an HTML page through the console?

1). The console provides us with the ability to write,manage, and monitor JS on demand.
2). Navigate to the goggle chrome menu, select More Tools, then Developer Tools which opens up a panel where you can click on console to bring up the JavaScript console if not already highlighted.
3). Console.log logs in JavaScript to the console, which makes it possible for us to work with JavaScript without having to click out of pop-up alerts.
4). Load the HTML page into the browser of your choice and you can then open up the console and begin working with JavaScript to modify the page.

1 Like
  1. A 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. Command+Option+J
  3. You can do Math!
  4. Select something on the page, hit Command+Option+J then go to elements, and there you can chage the code
1 Like

Can anyone tell me why this is not working for me, not sure what I am doing wrong.
followed as in the example in reading asignment.
Am using Brave browser, can that be the problem?
THKX

VM300:1 Uncaught ReferenceError: date is not defined
at :1:9
(anonymous) @ VM300:1
console.log("today’s date is " +d);
VM375:1 Uncaught ReferenceError: d is not defined
at :1:33
(anonymous) @ VM375:1
let d = new date();
VM393:1 Uncaught ReferenceError: date is not defined
at :1:9
(anonymous) @ VM393:1
console.log(“today’s date is " +d);
VM437:1 Uncaught ReferenceError: d is not defined
at :1:33
(anonymous) @ VM437:1
console.log(“Today’s date is” + d);
VM538:1 Uncaught ReferenceError: d is not defined
at :1:33
(anonymous) @ VM538:1
let d = new Date();
undefined
console.log(Today’s date is” + d);
VM700:1 Uncaught S

  1. JS console is used for trying our code real time in an already existing html/webpage.

  2. the settings dots under X, more tools, tools for developers, or CTRL+SHIFT+I.

  3. for solving math problems

  4. by interacting with the pages DOM with JS and modifying it. + you also see what each element represents on actual page.

  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?
    To open the JavaScript Consolein 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 the console.
    You could also press CTRL+SHIFT+J

  3. What does console.log function do?
    It will send a comand to the console to print the result of the information inside.

  4. How can you change the contents of an HTML page through the console?
    You can use diferent comands to do it but it will return to its inicial state if the page is reloaded

  1. It can be used to change HTML or Javascript programming on the website
  2. F12
  3. print
  4. Double click the element in the DOM
1 Like

If you follow along with the article, it is really entertaining for a NOOB like me. The answers below are directly from the assigned reading. Thanks!

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

  2. How do you open the Console in Google Chrome? - 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. If you use the BRAVE browser, click the 3 bars on the top right > More tools > Developer tools > Console tab

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

1 Like

What is the console used for?
A console is the tool we use to write, manage, and monitor JavaScript.

How do you open the Console in Google Chrome?
CTRL + SHIFT + J , or by drop-down on top right of the screen – More tools – Developer .

What does console.log function do?
Allows us to store any message needed by the user.

How can you change the contents of an HTML page through the console?
In the console, under the elements tab, click on the three dots next to any entry, and edit it as required.

1 Like
  1. Test, execute commands, inspect, monitor javascript. Changes are lost when page is refreshed.
  2. F12 to pay respects
  3. It sends console information to the console.log file
  4. Use the document object and modify it
1 Like
  1. What is the console used for?
  • to debug and adjust code.
  1. How do you open the Console in Google Chrome?
  • F12 Key
  1. What does console.log function do?
  • put information into the console for checking something.
  1. How can you change the contents of an HTML page through the console?
  • use ´document` object.
1 Like
  1. What is the console used for?
    Managing, writing and controlling the JS from a web page position.

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

  3. What does console.log function do?
    Can be used to output our code.

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

1 Like
  1. What is the console used for? Allows you to manage, write and monitor javascript
  2. How do you open the Console in Google Chrome? 3 vertical dots on top right corner → more tools → developer tools. Shortcut method ctrl + shift + j (linux or windows), command + option j on mac.
  3. What does console.log function do? It prints the out put of your javascript rather than on the website.
  4. How can you change the contents of an HTML page through the console? You cannot change the HTML on the webpage, once you reload it will revert back to its saved state.
2 Likes
  1. What is the console used for? The console is used to make real time changes to a webpage for using JavaScript.
  2. How do you open the Console in Google Chrome? Command+Option+J Or by going to the three dots in the upper right-more tools-developer tools - console.
  3. What does console.log function do? It makes so that the output pops up inside the console.
  4. How can you change the contents of an HTML page through the console? You can’t really. You can only experiment with it.
1 Like
  1. The console is used as a developmental tool, that is built into modern browsers to work with Javascript. The console gives us the ability to write, manage, and monitor Javascript on demand.
  2. To open the Javascript console in google chrome, you can navigate to theta right of the browser
    window, signified by three vertical dots, select more tools, developer tools, this will open a panel where you can click console along the top menu bar to bring up the Javascript console.
  3. The console.log function allows us the ability to work with Javascript without the pop-up alerts, it also gives us the ability to perform math problems.
  4. We can change the contents of the “html” page by adding to the title information such as date and time, changing the background color, and or the color of the text.
1 Like

1)Console helps to write , manage and monitor JavaScript on demand
2)Go to top right corner of browser-click on 3 dots-More tools- Developer tools OR
CTRL+SHIFT+J
3)Console.log function used to display the output of the function within the console
4)By using document element

1 Like
  1. What is the console used for?

To read and write the Javascript code

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

command+ option + j

  1. What does console.log function do?

To print the things you want it to print, to see the result

  1. How can you change the contents of an HTML page through the console?
    Change it at the element tab
1 Like
  1. Console allows to modify the content shown of an HMTL file without modifying it. When we reload the page the changes made in the console are deleted.

  2. With the comand CTRL + SHIFT + J in Windows.

  3. Show the function used on the browser.

  4. Using JavaScript commands.

1 Like