Console - Reading Assignment

  1. What is the console used for?
    Inspect manage alter deploy test JavaScript on demand. You can use JavaScropt in real time, working in an environment similar to a Terminal Shell interface.

  2. How do you open the Console in Google Chrome? You open the Console in Chrome by:
    Top right , dev tools, console. Or right click mouse “inspect”

  3. What does console.log function do?
    logs information into the JavaScript console and logs a value output. make changes without windows pop ups. The output will be contained within the console.experiment and see how you can modify pages. Once you reload the page it will return to a blank document. output your expressions to the console itself, instead of modifying the webpage.

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

What is the console used for?

The console is used to have the ability to monitor edit and interact within a browser of the underlying HTML site using javascript code. Having a console gives you the power to immediately see changes and additions to a website

How do you open the Console in Google Chrome?

To find the console u can search in the menu for developer tools and find the console there. Or you can use the shortcut p.e. on Mac Command + Option + J

What does console.log function do?

It gives you functionality in the console to have a return inside the console and not on the webpage

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

To change contents within a HTML site you can use the command innerHTML = something

Javascript Programming

    Answers: What is the Console?

1- The Console can be used to log information as part of the Javascript development process, interacting with a web page and basically writing with Javascript while still being within a browser such as Firefox.

2- To open the Console in Google Chrome one can go to the top right corner of the browser window, marked with three vertical lines or dots, select more tools then developer tools. You can also use a shortcut by pressing CTRL+SHIFT+J.

3- The function of console.log allows the developer to try out Javascript code in real-time and getting some (basic) results, activating the computer to do active calculations, all in real-time, so you can get used to an environment similar to a terminal shell interface.

4- To change the contents of an HTML page through the Console you first load it into the browser and then you open the Console and start working with Javascript to modify the page.

What is the console used for?

Essentially, the Console provides you with the ability to write, manage, and monitor JavaScript on demand

How do you open the Console in Google Chrome?

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. Click on Console

or Press Ctrl+Shift+J.

What does console.log function do?

To print on javascript without having unnecessary display on a given website

To work math problems

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

Following steps such as below:

  • define variables: a variable for html element, another for html content. For example p for paragraph element, and t for tag content
  • append variable for content to variable for element. Then append variable for element to the element, and the appended variable for content to the document

Ref this forum: haiku – right click over the element that you want to change and select “inspect”

1. What is the console used for?
Allows you to write, manage and monitor JavaScript on demand in a shell window

2. How do you open the Console in Google Chrome?
Menu(the 3 vertical dots in the top right) --> More tools --> Developer Tools --> Console tab
Or
CTRL + SHIFT + J on Linux or Windows, or COMMAND + OPTION + J on macOS
Or
F12 (windows)

3. What does console.log function do?
Logs or writes the results of your JavaScript within the console window itself in real time. Doing the same thing in a browser window would require a refresh each time you made a change to the code.
Remember the console window and the console.log function are both part of the Developers Tool kit, ie they are tools that help you develop/write JavaScript.

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

  • The console allows you to interact with the web page by editing JavaScript commands within the page context
  • Go to the menu at the top right corner of the browser > More Tools > Developer Tools.
  • Console.log function allows you to enter Javascript commands.
  • Using the document object
  1. What is the console used for?
    The console is used for sending javascript requests to a webpage. The webpage will not be modified itself, instead, it creates a temporary copy which lets the programmer experiment within the page. Once we press F5, the page goes back to its original state

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

  3. What does console.log function do?
    console.log writes the result of a javascript command in the console

  4. How can you change the contents of an HTML page through the console?
    We can change it by sending javascripts requests like document.body.innerHTML

  1. What is the console used for?
    To test javascript code, it can use to print out value & error for debugging.
  2. How do you open the Console in Google Chrome?
    Right Click -> Inspect
  3. What does console.log function do?
    Console.log is used to print out values in the console windows.
  4. How can you change the contents of an HTML page through the console?
    Can input code in console windows or modify the element inside the console.
  1. It used to write, manage, & monitor JavaScript on demand.
  2. CNTRL+SHIFT+J or Clink the 3 vertical dots in the top right hand corner, click 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.
  3. It logs a value/input in JavaScript.
  4. Use elements such as document.create Element to modify html code on page.

1/. What is the console used for?
This is a fabulous tool that allow the programmer to write, manage and monitor Jacascript on demand.
2/. To open the Console in Chrome:
To open the 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.
3/. Console.log allows the programmer to perform math functions.
4/.You cannot do this except to experiment modifying HTML pages.

The console is to write Java Script and to interact within the website.Commands can be uploaded and transferred to the website. On Chrome this is accessed by clicking on the three dots on upper right, scrolling down to more tools, then to developer tools. Then click onto “console” next to elements. The console.log is a command function, for example doing a math equation or telling the time. HTML format can be uploaded to the console and modified to the command at hand for example an equation or a date. This means that HTML can be dynamically used within JavaScript.

1.) The console is used for making active changers to a website.

2.) Menu-More Tools-Developer Tools-Console

3.) It is used to print outputs to be displayed on the web page.

4.) Save an HTML file, load it in the browser, and open console and begin adding inputs to the console.log.

  1. You can use it to edit a web page live within a browser using Javascript. Changes will be lost on refresh. Great for toying around. Allows you to be like “let’s see what happens if I do this”

  2. Cttrl+Shift+J or F12.

  3. It allows you to run the operation straight into the console. For example, you get the result (text, number etc) on the next line of the console, rather than have it appear on the website.

  4. Either add HTML via Javascript through the console, OR view the page in html format using the Elements tab in Chrome Console and apply the changes directly onto the code there. Again, these changes will not be saved upon refresh.

  1. What is the console used for?
    to log information and try out code for you to interact with
  2. How do you open the Console in Google Chrome?
    Ctrl + shift+ J
  3. What does console.log function do?
    It prints a message in the console
  4. How can you change the contents of an HTML page through the console?
    You can use javascript to tell it to change styles and to add content by telling it to insert html into the website

What is the console used for?

-Console gives you the ability to manage, write and monitor JavaScript within the context of the webpage

How do you open the Console in Google Chrome?

-Top right-hand side there’s 3 vertical dots, click that then go to more tools>developer tools

-For shortcuts

Microsoft: CTR + SHIFT + J.

MAC: CMD + OPTION + J

What does console.log function do?

-Logs messages on the console

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

-By going to the Elements section in the Console

  1. The console is used to view the html and JS code of a website
  2. F12
  3. its like a debug.print in the console. it shows the solution of a command
  4. document. command

1. What is the console used for?

The console is used for logging information as part of the “javascript development process.” (p. 2 l. 1) The console gives a direct ability to interact javascript with a webpage.

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

In Mac Pro go: “View” Dropdown Tab: “Developer” section, “Developer Tools” option within dropdown menus. Or with utilization of Command, Option, J to hotkey in javascript console.

3. What does console.log function do?

console.log allows the ability to skip “pop-up alerts” and continue to work with the javascript logging into the console.

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

By utilizing html, css or javascript within the console of the browser’s developers tools in the “dynamically-rendered page” section to enable page changes. Note that once the console page is closed or reloaded the entire original console will return to original form rio to any changes. Saving needs to take place prior to reloading.

  1. What is the console used for?
    Console can be used to log info as a part of java script development process.Console can also interact with java script expression within page context.

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

3.What does console.log function do?
To log into the Console ww use console.log.

4.How can you change the contents of an HTML page through the console?
By going to the Elements section in the Console and double clicking the element, tag, attribute you want to change.

  1. You may use the console to inspect certain information about a website. You may use the console to make changes to the data being processed by the code running the site.
  2. Goto More Tools - Developer Tools - [Console]
  3. console.log writes keyboard input to the log of the site. This input may be quoted literals or variables or even a calculated output from the cpu stack.
  4. You may enter HTML commands into the console to make temporary changes to the HTML output.
    When you close the console the data reverts to the original HTML.