Console - Reading Assignment

  1. What is the console used for?

The console is mostly used for testing / minor debugging of JavaScript code as it relates to the DOM or just generally. For example the properties of JavaScript objects and values of variables can be logged to the console to see what they hold and if the correct output is being produced.

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

By navigating to the top right in the browser clicking the 3 vertical dots and then selecting More Tools and then Developer Tools

  1. What does console.log function do?

It logs whatever it takes as input to the JavaScript console. The input could be a string, number type, JSON object, DOM object, etc.

  1. How can you change the contents of an HTML page through the console?
    By using innerHTML property of the Document.body object and setting its contents to a string that represents an HTML tag. This HTML tag will be inserted in between the tags of the page at the very end of other HTML that may exist.
    This however, is temporary as the page will return to its original state upon reloading.
1 Like
  1. The console is used to write, manage, and monitor Javascript on demand.
  2. You can open the console in google chrome by pressing control +shift + j

3.The console log function makes it so the work is logged in the console instead of the actual website.

4.inspect element

1 Like
  1. the console can be used to build, edit, debug the code running the webpage at which your’e looking.

  2. ewwwww i don’t like google, so i used opera; just find the “developer tools” or similar and click.

  3. console.log prints the result of whatever operation it wraps (often enough there’s no real result requested, so it’ll print something along hte lines of “undefined”.)

  4. if you go to the document object manager (e.g. inspector or inspect elements or similar) tab, the document is arranged in a tree of html/css/javascript where you can edit anything and have it pop up immediately (but can’t refresh page unless you want to reset the whole thing to the version served)

2 Likes
  1. The Console is allows you to write manage and monitor JavaScript at any time.
  2. You can open the console by pressing control + shift + J.
  3. The console.log function allows you to work on Javascrpit on the Console, so it wont show up on the website.
  4. By using JavaScrpit too modify the code.
2 Likes

1: The console is used to log information during the Javascript development process, as well as allowing you to interact with a web page giving you the ability to write, manage & monitor Javascript on demand.

2: Press the three vertical dots in the top right then select - More Tools - Developer Tools.
(Or the shortcut, CTRL + SHIFT + I)

3: console.log function allows script to be logged or shown in the console.

4: The contents can be changed through the DOM view (Document Object Models), this view enables you to inspect & edit the HTML page.

2 Likes
  1. The console is used to log in information as part of the javascript development process and to be able to interact with the web page.
  2. Click three dots in the top right corner > more tools > developer tools > console. Or just click ctr;+shift+J.
  3. It displays your code’s output in the console.
  4. You can write your javascript code inside the console to instantly see the taken effects of the code.
2 Likes
  1. The Console essentially gives you the power to write, administer, and monitor JavaScript on the go.

  2. Click on the three dots on the top right of the screen, click on more tools -> developer tools, then click where it says console. Alternatively, if you wanna save time, use the command “ctrl + shift + J”

  3. It enables us to insert our JS code into the console.

  4. Save a HTML file and open it in a browser. From there, you can now use JS to modify the webpage from the console.

2 Likes
  1. What is the console used for? To log information, interact with a web page, and write, manage, and monitor JS on demand.

  2. How do you open the Console in Google Chrome? There are two methods: 1) In Chrome, click on the three vertical dots at the top right of the browser > click More Tools > click Developer Tools.

  1. Keyboard Shortcut: Command + Option + J on a Mac; CTRL + Shift + J on a PC.
  1. What does console.log function do? It prints any message that needs to be displayed or prints any previously defined variables.

  2. How can you change the contents of an HTML page through the console? By coding JS instructions into the Console. This allows to insert dates, modify page style,

2 Likes
  1. Console is used to write Javascript code within HTML file
  2. By pressing F12
  3. Write JavaScript code
  4. You can temporary change the contents of an HTML page but when you reload it it will go back to the same
2 Likes
  • test javascript by outputting messages to the console
  • Menu -> More tools -> Developer Tools
  • console.log is used to output something to the console, you can use javascript and do math etc…
  • By using JS, you can change the style of an HTML page through the console
2 Likes
  1. What is the console used for?

It’s a command-line interface which provides the ability to write, manage, and monitor JavaScript on demand. It allows to experiment with modifying HTML pages

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

ctrl + shift +J

  1. What does console.log function do?

It allows to logs the output of commands to the console.

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

One can change the content temporarily but once the page is reloaded the changes are gone. So we are not able to change the HTML document.

2 Likes

1.It’s an interface in your browser that can execute snippets of code to interact with the webpage you are currently on.
2.Go to Menu…More Tools…Developer Tools.This will open a panel where you can choose Console.
3.It’s a javascript function which is used to print output on the web console.
4.By using the DOM.

2 Likes

Q.1. What is the console used for?
A.1.The Console can be used to log information by allowing the developer to
interact with a web page with the ability to write, manage, and
monitor JavaScript on demand.

Q.2. How do you open the Console in Google Chrome?
A.2. 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.
Or use the keyboard shortcut CTRL + SHIFT + J

Q.3. What does console.log function do?
A.3. Allows the developer to work with JavaScript (results) on the cosole, rather the actual ouput.
For example instead of clicking on the result (a pop up with message). The message is viewed
directly on the console.

Q.4. How can you change the contents of an HTML page through the console?
A.4. By using the DOM (Document Object Model) Using the Elements(Chrome) panel located at the top menu bar,
then clicking 3 horizontal dots located to right of the html syntax, then clicking edit.
For FireFox use the Inspector panel

2 Likes
  1. What is the console used for?
    The console allows you to interact with a web page by writing, managing, and monitoring JavaScript in real time.

  2. How do you open the Console in Google Chrome?
    Navigate to the menu at the top right of the browser window signified by three vertical dots -> More Tools -> Developer Tools. This opens a panel where you can click on Console along the top menu bar.

  3. What does console.log function do?
    The console.log function allows you to print outputs such as strings and mathematical calculations to the console.

  4. How can you change the contents of an HTML page through the console?
    By accessing the DOM tree of a web page, you can modify HTML elements.

2 Likes

1: it is used to execute javascript commands inside of your browser
2: ctrl+shift+i
3: it logs information into the console
4: we can edit them by double clicking it inside of the inspector tab

1 Like
  1. The Console is a toll to read, manage and develop javascript code.
  2. To open the Console in Google Chrome one must simply open the developer tools and then search for the Console tab.
  3. Console.log allows you to incorporate information into the console and allows one to perform a function, or calculation within the console (e.g., you can add two numbers with this function).
  4. You can change the content of an HTML page by writing javascript code in the console tab. The HTML page can also be inspected via the “Elements” tab in the document.
1 Like
  1. Console is used to type javascript code
  2. You can simply open with CTRL + SHIFT + J
  3. Console.log is used to print any kind of variables defined before in it or just print any message
  4. We can edit HTML contents double clicking the tag, element, or content we wish to edit
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 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.

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

Go to the “three dots” in the upper right hand corner of the Google.com webpage and click on it. Go down to “more tools” and click on it. Then go down to “Developer tools” and click on it. Then click on the “Console” bar.

  1. What does console.log function do?

console.log is used as a debugging tool to help one understand what one’s code is doing. By displaying a message containing either descriptive text that tells you what is happening or the value of variables, one can follow along as your code executes. The user of your app will not see the console.

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

If you load a html file into the browser of your choice you can then open the Console and begin working with JavaScript to modify the page.

1 Like
  1. The console can be used to log information as a part of the JS development process and allow you to interact with a web page. It provides you the ability to write, manage, and monitor JS on demand.
  2. To open the console in chrome, you can navigate to the far top right of your browser, locate & click on the three vertical dots, go to “More Tools”, and select “Developer Tools”. On a Mac, you can select at the same time [command + option + j] as a shortcut to visit the console.
  3. The console.log function allows you to perform math functions by inputing a value and the receiving the answer to that value as an output. Instead of receiving pop-up alerts that will make you click out of constantly, you can use the console.log to simply receive an output answer.
  4. You can change the contents of an HTML page through the console by opening up the console and use Javascript to insert a heading into the HTML. By doing so, you will receive an output on the console. You can also modify the CSS code, which is the style of the page by changing its background color and the font by using Javascript functions.
1 Like
  1. It can be used to log information as part of the JavaScript development process, as well as allow you to interact with a Web page.Essentially, the Console provides you with the ability to write, manage and monitor JavaScript on demand.

  2. To ope the JavaScript Console in Chrome, you can navigate to the menu at the top-right of your browser window signified by 3 dots in a row. From there, you can select More Tools than Developer Tools. This will open a panel where you can click on Console.

  3. The JavaScript Console provides you with a space to try out JavaScript code in real time by letting you use an environment to a terminal shell interface.

1 Like