Console - Reading Assignment

  • What is the console used for?
    A)A console is development tool which provides us a work area to modify and make
    changes to web pages using different programming languages like JavaScript.

  • How do you open the Console in Google Chrome?
    A)On top right corner of screen press the 3 dotted button.
    Then More tools----->Developer tools------>Console Tab.

  • What does console.log function do?
    A)This function is used to return the result of the evaluating expression in JavaScript.

  • How can you change the contents of an HTML page through the console?
    A)In Elements tab which is present before the Console tab you will find HTML code where you
    can make changes to the HTML page

1 Like
  1. What is the console used for?
    The console is used for writing, managing, and monitoring JavaSript.
  2. How do you open the Console in Google Chrome?
    Menu -> More Tools -> Developer Tools
  3. What does console.log function do?
    It prints out results in the console
  4. How can you change the contents of an HTML page through the console?
    You may define variables and how they are displayed on console and the change would be reflected in the HTML page, you may also change the style of the page etc. However, once the page is refreshed or reopened, the changes are gone.
1 Like
  1. The Console can be used to log information as part of the JavaScript development process.
  2. You can open the console in Google Chrome with keyboard shortcut CTRL + SHIFT + J on Linux or Windows, or COMMAND + OPTION + J on macOS. You can also find Console manually by clicking on a menu.
  3. console.log function shows an output of an expression in the console.
  4. You can insert or change HTML tags and CSS properties in the console but only temporary.
1 Like
  1. The console is used for interacting with the website, executing JavaScript code within the context of the webpage and logging information to the webpage

  2. ctrl+shift+J or by going to settings -> more tools -> console

  3. Outputs (logs) text in the console

  4. By using DOM (Document Objected Model)

1 Like
  1. Is a tool similar to a shell interface, which means that is used to manipulate and give instructions to the browser using a programming language.
  2. By pressing Ctrl+Shitf+J in Windows or Linux, or pression Ctrl+Option+J in Mac.
  3. It logs our inputs and displays the outputs as well.
  4. Using a JavaScript program to inject the HTML code, one used is document.body.innerHTML=”your HTML code here”
1 Like

1.The console is 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.
2.Navigate to the menu at the top-right of your browser window signified by three vertical dots in a row. From there you select More tools than Developer Tools. This will open a panel where you can click on Console along the top menu bar to bring JavaScript Console.
3.Logs in JavaScript in to the console to let us work with it.
4.By working with JavaScript

1 Like
  1. The console is used to write, manage and monitor javascript on demand.
  2. Go to menu in chrome, tools , then more tools. Or your could ctrl+shift+j
  3. .log allows you to enter information into the console without windows poppoing up.
  4. By using the document element in html
1 Like
  1. Inspect elements of of code(debugging, testing and manipulation
    2.Hit the 3 dots then go to developer tools
  2. Put info into thee console if you need ot check variables or results
    4Right click the element you want ot change and select "inspect
1 Like
  1. What is the console used for?
    To see the page’s JavaScript execution result, as well as allow you write and execute some extra JavaScript code to manipulate the page on demand.

  2. How do you open the Console in Google Chrome?
    There are two ways to do this. The first, you need click in top-right menu of your browser. From there, you need select More Tools then Developer Tools. The second way is using the keyboard shortcut CTRL + SHIFT + J.

  3. What does console.log function do?
    This JavaScript function allow you print something in the console output.

  4. How can you change the contents of an HTML page through the console?
    By JavaScript code execution that select HTML element and assign the content that you want on its innerHTML attribute.

1 Like

What is the console used for?
For real-time development and debugging of code.

How do you open the Console in Google Chrome?
Customize>more tools>developer tools

What does console.log function do?
It allows you to log data in the JavaScript console.

How can you change the contents of an HTML page through the console?
By using JavaScript that add or change content.

1 Like
What is the console used for?
Enter javascript command to a webpage
How do you open the Console in Google Chrome?
Customize and Control Tab, More Tools, Developer Tools
What does console.log function do?
Display outputs in the console
How can you change the contents of an HTML page through the console?
Utilizing the document object.
1 Like

What is the console used for? provides you with the ability to write, manage, and monitor JavaScript on demand

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.

What does console.log function do? displays output in a text format

How can you change the contents of an HTML page through the console? executing javascript commands in the console.

For example:
let d = new Date();
document.body. innerHTML = "< h1 >Today’s date is " + d + “< /h1 >”

1 Like
  • What is the console used for? to edit the content and add features or more interesting aspects to a website we are trying to create, it is like an editor.
  • How do you open the Console in Google Chrome? you go to the options button on the top right of your chrome browser then go to more tools then developer tools and click on console at the top.
  • What does console.log function do? allows you to edit the page and add features and make it more interesting
  • How can you change the contents of an HTML page through the console? by opening up the console and start typing commands, every edit you make will automatically disappear when you refresh the page
1 Like
  1. What is the console used for?
    The console is used for logging information as part of the Javascript development process as well as allowing you to interact with a web page by carrying out Javascript expressions within the pages context.

  2. How do you open the console in Google Chrome?
    -open Google Chrome
    -Navigate to the menu at the top-right corner of the browser window signified by the three vertical dots in a row.
    -Select “More Tools”.
    -Select “Developer Tools”.
    This will open up a panel where you can click on “console” along the top menu bar to bring up the JavaScript console.
    You can also enter 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. What does console.log function do?
    Console.log function allows log data to output to the Javascript console.

  4. How can you change the contents of an HTML page through the console?
    Go to elements in the console and double clicking what you want to change.

1 Like

What is the console used for?

The console allows you to interact with your web page: the ability to write, manage, and oversee JavaScript.

How do you open the Console in Google Chrome?

To open the console in Chrome: open browser and open the tree vertical dots in a row. Open “More Tools” then the “Developer Tools”. This opens the “Console”
Also on a Mac: COMMAND + OPTION+J gets youth the console.

What does console.log function do?

Commands on the console appear as pop-up alerts and need to be clicked off. console.log produces the command on the console as a string.

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

Once your in the console you can modify the context of an existing HTML,CSS and JavaScript file.

1 Like
  1. The console is used to create JS expressions and carry out an interaction with a web page.
    These interactions include debugging, monitoring and logging information.

  2. While using Linux, you can use the keys CTRL + SHIFT + J to access the console.

  3. Console.log function generates an output within the web browser’s console screen.

  4. To insert HTML within the console, one must use the document before various other function
    available for HTML. For example document.body.innerHTML = " HTML code"

1 Like

1.To test/run the html in progress.Inspect and test certain parts, and see more faulty codes where they are/stop.
2.Control+Shift+I (Or in the web-browsers option section.)
3.console.log helps you log events such as objects in the console itself.
4.You can change content by typing JS in the console.

1 Like

1. What is the console used for?

It can be used by a user to interact with a webpage by adding JavaScript to the page, changing it and monitoring its execution from within a web browser.

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

I’m using Google Chrome browser on a Mac laptop, so what worked for me was the following: click on “View” in top menu bar (the one that’s always on top of the screen), choose “Developer ->” from the drop-down list, then choose “JavaScript Console”. Or simply press Option+Command+J on Mac’s keyboard.

3. What does console.log function do?

It prints the function’s argument (a string, a math operation’s result, a number or some other variable like current date, for example) in the console window. Sort of like the PRINT command worked on computers equipped with BASIC interpreter.

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

You can input instructions to change the page’s structure (by adding new HTML elements), its content, and even its appearance (by manipulating the visual style of the elements in CSS code). But once you reload the webpage in your browser, all those changes will disappear, as the HTML document reverts to its original state prior to your manipulations via the console.

1 Like

I think your answer to question nr. 4 refers to the “Inspector” or “Elements” development tool of the browser and not to the JavaScript console per se.

1 Like

What is the console used for?
The console is used to experiment with the use of Javascript on a web page that is currently loaded into the browser.
Changes made using the console are strictly in-memory, and do not effect the actual html or css files.
How do you open the Console in Google Chrome?
Ctrl+Shift+J Can be used to open the console. Think J for JavaScript.
What does console.log function do?
The console.log function is extremely important in JavaScript, as it is often the only way to troubleshoot errors.
Console.log will spit out whatever parameters you pass in to the screen, allowing you to see the values of variables and calculations at a given point in time.
How can you change the contents of an HTML page through the console?
You can run JavaScript within the console to change the contents of the in-memory HTML page on the fly.
The next time you reload the page, these changes will be reverted.
If you wish to persist these changes, you will need to save them into a separate file.

1 Like