Just a couple of observations to clarify some points…
Yes
No… it’s only displayed in the console, so this is for the developer’s benefit, not for the user (who will just see the actual web page in their browser).
Yes, we can change the contents of an HTML page there But this is a different developer tool.
In the actual console, we can do this by writing JavaScript code that accesses and manipulates the page’s Document Object Model (DOM).
I think you’re a little confused here… have a look at some of the other students’ answers. There are several different ways to open the Console in the browser, and I’m pretty sure this isn’t one of them
I tried following your instructions, just to check, and I got lost
By the way, have you already done the other 3 questions and posted your answers already? I can’t see them…
What is the console used for?
To inspect elements and test javascript on the console log and see how it will be processed on the webpage.
How do you open the Console in Google Chrome?
Control+SHIFT+J or F12 or three dots top right hand site and look for developer tools
What does console.log function do?
logs info to the console and displays a return value
How can you change the contents of an HTML page through the console?
click on the inspector tab to inspect the HTML elements of the page and double click to change them
What is the console used for?
To log information or to carry out expressions of code. Its a place where you can try out ideas.
How do you open the Console in Google Chrome?
By navigating to Menu/More Tools/Developer Tools or also open it with keyboard shortcut CTRL + SHIFT + J or just F12 works often too.
What does console.log function do?
Outputting the expression of the code.
How can you change the contents of an HTML page through the console?
By entering JavaScript within the context of the existing HTML code in the DOM. The HTML document itself though gets never changed and will be reinstated to its original version when reloading the page in the browser.
What is the console used for?
a tool to interact with the webpage and do javascript
How do you open the Console in Google Chrome?
Click more tools then developer tools.
What does console.log function do?
lets you work with javascript with having alerts
How can you change the contents of an HTML page through the console?
have an HTML file saved and open the developers site.
you can you document.body....
Q1: The console gives us the ability to write, monitor, and manage JS on demand.
Q2: There are two ways you can access the console the first by going to developer tools and looking for the console there or thru a shortcut (CTRL + SHIFT + J)/ or (CMND + OPTN + J) depending on the OS your running.
Q3: It logs certain info to the console to prevent repeatable annoying tasks like pop up alerts
I’m not really sure what you mean here…You still need to run the code/program which has console.log() in it in order for it to “show the result”, as you say i.e. display the value within its parentheses in the console.
What is the console used for?
Console allows you to edit a webpage live
How do you open the Console in Google Chrome?
For MAC = command + option + J or ‘three dots’ > more tools > developer tools
What does console.log function do?
console.log allows us to log our commands into the console so we don’t just have pop-up alerts
How can you change the contents of an HTML page through the console?
Click over to ‘elements’ and then double click the code that you would like to edit