Console - Reading Assignment

  1. The console helps to actively assist in debugging, allowing you to see what the javascript commands do when you execute them.
  2. CRT shift J or Command Option J for mac :wink:
  3. It creates a log entry in the console for watching values, or producing a result.
    4)- inspect element, using the DOM inspector
1 Like

1.1. 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. CTRL + SHIFT + I or F12 key
  1. logs info to the javascript console.

    1. Next to the ā€œConsoleā€ tab is the ā€œElementsā€ tab within which is the html document.
2 Likes

1.inspect the DOM, debug, and analyze network activity.
2,To open the Web Console in FireFox, you can navigate to the ☰ menu in the top right corner next to the address bar.
3. loga info
4.dom and elements

1 Like
  1. The console is used to interact with the website. You can insert JS code to de site and see how it would react. So the console is used for development and debugging.
  2. In Crome the console is part of the Developer Tools.
  3. The console.log function prints the output of a command in the console log
  4. You can by modifying the html code from the Elements tab by double clicking elements, or adding new elements through js commands. You are not changing the actual page, but only the page that is in the browsers memory. Once the page is refreshed, the changes are lost.
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. 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?
    You can 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.

  3. What does console.log function do?
    It logs or prints text or the result of evaluating an expression to the Console

  4. How can you change the contents of an HTML page through the console?
    After loading an HTML page into the browser, you can just open up the Console and begin working with JavaScript to modify the page. In Firefox the tab were you can do this is called Inspector. By double-clicking an element, you can change it.

1 Like
  • What is the console used for? Login , managing, writing, and monitoring the browser with
    java-script language.

  • How do you open the Console in Google Chrome?
    1.) CTRL+SHIFT+J
    2.) F12

  • What does console.log function do? Logs DATA ("Outputs Information To The Console).

    How can you change the contents of an HTML page through the console? By double clicking
    the tag, element, or content we wish to edit in the Elements tab and imputing new data in

1 Like

Console,

  1. to log information and interact on a webpage with javascript. You can write, manage and monitor on demand.

  2. F12 is the easiest way in chrome.

  3. Console.log is mainly used for debugging.You can log something to console when something happens. This is very usefol for a developper.

  4. In the console you can use the document object to change something in a webpage. example:document.body.style.color = "white"; These changes are only local and temporarly. Once refresh, it loads the original webpage again.



GreetZzz.. Manzo

2 Likes

What is the console used for?
To modify, the js code for a webpage. it is useful for experimentation.
How do you open the Console in Google Chrome?
on Mac OS: cmd+alt+j

What does console.log function do?
console.log() displays what it is inside the parenthesis

How can you change the contents of an HTML page through the console?
You can go to the tab Elements, inside the console, and double click on the element you wan to change
but change is not permanent.

1 Like

The console is used for seeing logged messages, executing javascript code, and debugging
ctrl + shift + J opens browser console
console.log function prompts user with a message
by manipulating the document body we can change inner HTML

1 Like

1 The console provides you with the ability to write, manage and monitor javascript on demand.
2. Press command+option+J on macOS or Ctrl+shift+J on Windows
3. With console.log we can work with javascript by logging it to the console.
4.Go to Elements in the console and double click it.

1 Like
  1. Essentially the Console provides you with the ability to write, manage, and monitor JavaScript on demand.
  2. Tools>More Tools>Developer Tools
  3. Within the console you can type JS commands and it captures the results of the comands.
  4. By using the Document command to access the html DOM object.
1 Like
  1. The console is used for experiment, modifying, and interact with HTML, CSS, and JavaScript within the web page it self
  2. you press Ctrl+Shift+j (or Ctrl+Shift+i)
  3. This function enables you to work with JavaScript inside the Browser Console (without making real changes in the webpage view)
  4. you have to work with the function ā€œdocument.bodyā€ to modify the actual body of the website (insted of using the console.log function)
    To modify existing elements of the HTML code, you have to press double click in it, and change it
1 Like
  1. to log info in proces of development
  2. ctrl shift j
  3. write on console and put content on page
  4. with inspector on firefox or elements on chrome
1 Like
  1. The console is used for writing and testing code for a webpage.

  2. you can open the console through right-click inspect, or pressing f12.

  3. console.log prints out a message to the console that is not visible to website visitors.

  4. you must create a html element using document.createElement(ā€œelementTagNameā€), attach some contents to that tag, then attach the created html element to the page section of your choice(such as attaching it to the body).

1 Like
  1. Console is used to interact with a webpage or to log info.
  2. cmd, opt, j (on mac)
  3. this function logs commands to the console
  4. You can view the DOM, and make changes there
1 Like
  1. What is the console used for?
    The Browser Console is a tool used to process and review code in a webpage.
  2. How do you open the Console in Google Chrome?
    To open console in Chrome use CTRL + SHIFT + J on Linux or Windows, or COMMAND + OPTION + J on macOS.
  3. What does console.log function do?
    The ā€œconsolde.logā€ command outputs to the console with no effect to the webpage itself.
  4. How can you change the contents of an HTML page through the console?
    When running code through the browser console, any changes will be reverted once the page is reloaded. You can select an element and edit the HTML from there.
1 Like
What is the console used for?

The browser console can be used to execute commands in the browser. These commands could alter what is displayed on the web page or add pop-up boxes (alerts) and other functionality to the page. Basically, the console is used to test code within the live browser using JavaScript.

How do you open the Console in Google Chrome?

I press the F12 button (Firefox, pretty sure it works in Chrome too).

What does console.log function do?

The console.log() function outputs text to the console. Similar to a print or cout function in other programming languages.

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

By using the document.xxxxx.yyyyy = <tag’> Content to be added here </tag’> Where xxxxx and yyyyy could be something such as body (a structure element of the web page) and innerhtml respectively.

1 Like

What is the console used for?

This is used as an interface for an user to try out Javascript in real time on a brower.

How do you open the Console in Google Chrome?

In the ellipses on the top right, click on More Tools --> Developer Tools

What does console.log function do?

It logs the code onto the console.

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

You can insert Javascript code into HTML tags to modify the content or the formatting.

1 Like
  1. what is the console used for?
    This gives you an interface that can be used to try out some javascript code.

  2. How do you open the Console in Google Chrome?
    You will need to go to settings/tools/developertools.

  3. What does console.log function do?
    It allows you to type javascript commands for outputs.

  4. How can you change the contents of an HTML page through the console?
    By using the document element and adding the code for desired change.

1 Like

1. What is the console used for?

Console is one of the tools modern browser provided, Console which is similar to a shell interface, along with tools to inspect the DOM, debug, and analyze network activity.

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

You can also 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.

3. What does console.log function do?
console.log allows input variables to the console and test it in an environment similar to a terminal shell interface.

4. How can you change the contents of an HTML page through the console?
No, once refreshed the page, all previous commands will not be saved in opened HTML, you need to save the code somewhere else.

1 Like