Console - Reading Assignment


#462
  1. It’s a way to write, manage and monitor JavaScript on demand within the context of a web-page. It is also useful for logging info as part of the JavaScript development program.

  2. Press F12 then you can click on Console along the top menu bar to bring up the JavaScript Console if it is not highlighted already. 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. It logs the result of evaluating an expression in the console rather than have pop-up alerts that we need to continue to click out of.

  4. we can use the DOM.
    “These tools enable you to inspect and edit DOM elements and also let you identify the HTML related to an aspect of a particular page. The DOM can tell you whether a text snippet or image has an ID attribute and can let you determine what that attribute’s value is.”


#463

What is the console used for?

It is a console to use Java Script to see live when I develop a script for a homepage and interact with the page live.

How do you open the Console in Google Chrome?

Ctrl + Shift + J

What does console.log function do?

It for example returns the sum of numbers, today`s date and give you back a value after you have inserted more parameters

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

You can go into the DOM under the Elements tab in the console and edit the code. This will reset when you refresh browser.


#464
  1. What is the console used for? - This is a way for you to inject javascript in to a webpage and see what it will do before putting it into your code
  2. How do you open the Console in Google Chrome? - option + command + i
  3. What does console.log function do? - It will do whatever is between the () so if it is a string it will print the string. If it is a math equation it will print the answer to the math equation.
  4. How can you change the contents of an HTML page through the console? You can first make an element with document.createElement and then you can append text to that element.

#465
  1. The console can be used to interact with the elements of the webpage or to execute functions
  2. Control+Shift+I
  3. ‘console.log’ logs a value output
  4. Using the ‘document.’ object

#466

What is the console used for?
Console is used to view, inspect, and modify elements on a web page. Console can also be used to execute JavaScript commands without writing permanent code.

How do you open the Console in Google Chrome?
Menu >> Tools >> Developer Tools or by pressing Control + Shift + I.

What does console.log function do?
Outputs information to the console window.

How can you change the contents of an HTML page through the console?
You can change the content by writing JavaScript commands in the console such as document.body.innerHTML = “…”


#467
  1. What is the console used for? - the Console is a development tool, similar to a shell interface, built in to work with JavaScript and other web technologies.

  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.

  3. What does console.log function do? - it allows direct access to work with JavaScript by logging it to the Console with console.log .

  4. How can you change the contents of an HTML page through the console? - we can use JavaScript commands to dynamically change HTML content of the page but once we reload the page it will return to the original HTML code.


#468

What is the console used for?
It is used to make changes to the web page without having to reload the page every time. Alows for testing without changing the original code.

How do you open the Console in Google Chrome?
ctrl+shift+j or menu+more tools+developer tools

What does console.log function do?
It runs the function we defined and displays the corresponding result.

How can you change the contents of an HTML page through the console?
We need to change to the “Elements” tab and then double-click whatever element we want to change. No definitive changes are made using the console.


#469

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

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

4.You can work within the context of an HTML file or a dynamically-rendered page in the Console. This provides you with the opportunity to experiment with JavaScript code within the context of existing HTML, CSS, and JavaScript.


#470

What is the console used for?

The main usage would be to debug your JavaScript code. The JavaScript Console also provides you with a space to try out JavaScript code in real time by letting you use an environment similar to a terminal shell interface.

How do you open the Console in Google Chrome?

Shortcut keys:

Windows: ctrl+shift+J

Mac Command+Option+J

What does console.log function do?

The console.log() is a function in JavaScript which is used to print any kind of variables defined before in it or to just print any message that needs to be displayed to the user.

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

By typing the JavaScript code into the console you can see how the html page would change with your code, but this is only temporary and doesn’t make any permanent change to the page.


#471

1- The console is a built-in tool in modern browsers that allow for some development functionalities on Javascript.
2- I can open it on Chrome using the shortcut fn + F12 on my Ma, then select the tab “Console”.
3- You can use the console.log function to print strings on the console such as phrases, calculations, dates. etc.
4- You can modify the page both by typing Javascript commands in the “Console” tab, or by changing the HTML parameters in the “Elements” tab. But the changes will not be saved.


#472
  1. What is the console used for?
    It can be used to log information as part of the java script development process as well as allowing you to interact with the webpage, carrying out java script expressions within the pages content.

  2. How do you open the Console in Google Chrome?
    F12 key is the shortcut

  3. What does console.log function do?
    It allows a programmer to make changes to the website, in which the output will be contained within the console

  4. How can you change the contents of an HTML page through the console?
    Through the DOM. All HTML elements are defined and be accessed and modified using Javascript


#473
  1. Console is used for experiments with a page contents and visuals without messing with original code.
  2. The fastest way is F12 key.
  3. Console.log makes console to output a variable mentioned in the function.
  4. Page contents will change depending on the JS you’ll write in the Console, but it won’t be saved after the page refresh.

#474
  1. What is the console used for?
    The console is used to execute the code
  2. How do you open the Console in Google Chrome?
    right mouse click test, inspect, console
  3. What does console.log function do?
    it prints a value or function
  4. How can you change the contents of an HTML page through the console?
    On a web browser, only the current state will be changed.

#475

What is the console used for?

Console is a development tool built in to work with Javascript. Console allows interaction with webpages by carrying out Javascript expressions within the pages parameters & console is also used to log information as part of the Javascript development process.

How do you open the Console in Google Chrome?

Menu > more tools > Developer tools > Console tab

OR hotkey: Control + Shift + J

What does console.log function do?

‘Console.log’ logs information into the JavaScript console and logs a value output.

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

Console allows you to interact with the pages ‘document object model’ through Javascript by using the document object and altering it as required.


#476
  1. What is the console used for?
    Its used as a convenient way to debug, test and play with your code within your browser

  2. How do you open the console in Chrome?
    Ctrl + Shift + J or F12

  3. What does console.log function do?
    It enables you to check a previous value or function

  4. How can you change the contents of an HTML page through the console?
    You can use JS commands in the console tab, but they won’t be saved to the HTML file after refreshing the page, so you need to save any changes you don’t want to lose separately.


#477
  1. What is the console used for?
    The console is used for :
  • Logging information
  • Interacting with a webpage

The console allows you to write, manage and monitor JavaScript on demand.

  1. How do you open the Console in Google Chrome?
    Go 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 along the top menu bar to bring up the JavaScript Console if it is not highlighted already.

  2. What does console.log function do?
    It allows you to work on JavaScript avoiding pop-up alerts.

  3. How can you change the contents of an HTML page through the console?
    by using the command “let”
    Example:

let p = document.CreateElement (“P”) ;
In the example above, you are asking the console to create a paragraph on the HTML page


#478
  1. What is the console used for?
    we can use console for test our javascript codes on page and see the affect.
  2. How do you open the Console in Google Chrome?
    from right top side button.other tools>developer tools
  3. What does console.log function do?
    console.log function shows the effect of code that we wrote, right at the line below.
  4. How can you change the contents of an HTML page through the console?
    double click dos-elements and change the contents.

#479
  1. Console is used for making temprorary changes and experimenting with the web page.
  2. Go to more tools and click on develppre tools option.
  3. prints text in the console.
  4. we can change HTML by using document.

#480
  1. Console is development tool built in to work with JavaScript.

The Console provides you with the ability to write, manage, and monitor JavaScript on demand.
2. 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 and finally select console.

  1. The Console provides you with a space to experiment with modifying HTML pages, but it is important to keep in mind that you’re not changing the HTML document when you do things on the Console. In this case, once you reload the page it will return to a blank document.

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

You can also work within the context of an HTML file or a dynamically-rendered page in the Console. This provides you with the opportunity to experiment with JavaScript code within the context of existing HTML, CSS, and JavaScript.

after testing all on the console you will have to save all changes on the original HTML file.


#481
  1. What is the console used for?
    It is used to write Javascript expressions and see how they perform in the context of your webpage. However, once you reload your webpage, it will look exactly the same as it was before you started experimenting.

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

    You open the Console in Chrome by:
    1)Clicking on the three vertically aligned dots at the upper right corner of the browser.
    2)Hovering over “more tools” in the drop down menu until a second menu appears.
    3)Click on “Developer tools”
    4)Select “Console” in the top bar.

  3. What does console.log function do?
    The console.log function will evaluate and 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?
    You would have to copy the Javascript code that you want to use from the console and paste it into the .html file that pertains to your webpage