Console - Reading Assignment

[quote=“ivan, post:1, topic:3109”]

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

  • How do you open the Console in Google Chrome?
    Menu -> More Tools -> Developer tools

  • What does console.log function do?
    output/prints whatever is passed as a parameter: strings (between “”, expressions and variables).

  • How can you change the contents of an HTML page through the console?
    You can use the Console and use JavaScript to modify the page contents by accessing its structure and modify its elements.

1 Like
  1. The console is used to communicate with the broswer directly. You can inspect and analyse the DOM or even customise.

2.You can access the console by right clicking the page and selecting “inspect” or by clicking the 3 dots in the top right corner and selecting “more tools”, then “developer tools”.

3.The console.log function literally executes your command or logs your desired string and places the result on the screen.

4.You can edit the DOM by manually accessing want section you want to change by using property accessors and dot notation.

1 Like

What is the console?

What is the console used for?

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

How do you open the Console in Google Chrome?

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

What does console.log function do?

Answer: Note that the Console will also print the result of evaluating an expression, which will read as undefined when the expression does not explicitly return something.

Rather than have pop-up alerts that we need to continue to click out of, we can work with JavaScript by logging it to the Console with console.log.

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.

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

Answer: If you save an HTML file, and load it into the browser of your choice, You can then open up the Console and begin working with JavaScript to modify the page.

1 Like

Quick interactive development of your html and JS code
Burger Menu>Tools>Dev Tools>Console
Prints out results of your JS code to the Console
Elements tab will show the DOM and you can Edit it in place (but won’t be saved anywhere!)

1 Like
  1. What is the console used for?
    The Console gives the ability to write, manage, and monitor JavaScript on demand.

  2. How do you open the Console in Google Chrome?
    Control + Shift + J

  3. What does console.log function do?
    The Console.log function logs data and information within the Console, so that you can have fast results and can try multiple operations quickly and not have to reload the page.

  4. How can you change the contents of an HTML page through the console?
    You can open up the DOM and take a look at the elements tab and from there you can modify the HTML code.

1 Like
  1. To execute Javascript commands in real time
  2. Hit F12
  3. Enabling working with Javascript by logging it into the console
  4. Using DOM or Javascript to edit page
1 Like

[quote=“ivan, post:1, topic:3109”]

  • What is the console used for? Perform functions compute equations execute command while the file is opened in a web browser. It can be used to find sources of files or test changes to the file
  • How do you open the Console in Google Chrome?
    Clicking the three vertical dots on the top right of address bar. Click on more tools. Click on developer tools.
  • What does console.log function do?
    Logs the execution of a JavaScript execution. Performs a function or executes a command and logs the result.
  • How can you change the contents of an HTML page through the console?
    By typing JavaScript commands and hitting enter.
    Modifying the DOM through the inspector or elements tabs are ways of modifying the contents outside of the console.
1 Like
  1. What is the console used for?
    • Can be used to log information as part of the JS development process
    • Allow you to interact with a web page by carrying out JS expressions within the page’s context
    • Console provides with the ability to write, manage, and monitor JS on demand
  2. How do you open the Console in Google Chrome?
    • More tools > developer tools
  3. What does console.log function do?
    • Allows you to run scripts on the console and see the results on the console
  4. How can you change the contents of an HTML page through the console?
  • by using the document element
1 Like

1)To login formation,interact with the web page,to write,manage and monitor JVS
2)CTRL +SHIFT + J
3)logs info to the JavaScript console
4)by using document element inside the console and double click element,tag attribute you want to change

1 Like
  1. What is the console used for?

The Console provides us with the ability to write, manage, and monitor JavaScript on demand.

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

CTRL + SHIFT + J on Linux or Windows. COMMAND + OPTION + J on macOS.

  1. What does console.log function do?

Rather than have pop-up alerts that we need to click to go to the webpage, we can work with JavaScript by logging it to the Console with console.log .

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

We can type the up arrow ↑ key on our keyboard to modify the previous command.

1 Like

1.What is the console used for?
it is used to log information as part of the javascript development, thus writingand editing code in javascript
2. How do you open the Console in Google Chrome?
3 vertical dot menu-more tools-developer tools
3. What does console.log function do?
it prints out or shows whatever the output of what was put into ()
4. How can you change the contents of an HTML page through the console?
you can open the contents of a webpage in a text editor an then save it as a html, open the console then use javascript

1 Like

1)The console enable us with the ability to write, manage, and monitor JS code on demand.
2) Menu/ More Tools / Developr Tools/ Console Tab. We can also use quick keys with microsoft and macs:
Microsoft: CTR + SHIFT + J
MAC: CMD + OPTION + J
3) Console.log allows programmer to log data (or objects in most cases) to the JS Console.
4) We can edit HTML contents by double clicking the tag, element, or content we wish to edit in the Elements tab and entering the new data in.

1 Like
  1. The Console is used to test javacript code, read outputs of commands you give, etc.
  2. You can open by pressing Option + Command + J on MacOS.
  3. Returns the output of an equation or string you give it.
  4. Using the “Document” Object and editing it through the text editor.
1 Like
  1. What is the console used for?
    The console provides you the ability to:-
    -Write
    -Manage
    -Monitor
    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. It basically provides you with the ability to write, manage and monitor Javascript on demand

  2. How do you open the Console in Google Chrome?
    I’m using Brave but it’s similar-You click on the 3 lines in the top right hand corner then ‘more tools’ and then ‘developer tools’.

  3. What does console.log function do?
    The console.log() function 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.

  4. How can you change the contents of an HTML page through the console?
    To live-edit a DOM node, double-click a selected element and make changes.

2 Likes
  1. What is the console used for?
    It allows you to interact with the webpage.
  2. How do you open the Console in Google Chrome?
    On chrome go you go to the right upper corner and click on the three vertical dots, then go to more tools and then go to developer tools.
  3. What does console.log function do?
    It allows you to execute an instruction.
  4. How can you change the contents of an HTML page through the console?
    You go to Elements, right click on what you want and select edit as HTML.
1 Like
  1. The Console provides you with the ability to write, manage, and monitor JavaScript on demand
  2. By using the keyboard shortcut CTRL + SHIFT + J on Linux or Windows, or COMMAND + OPTION + J on macOS
  3. Executes operations within the console itself
  4. By entering HTML in the console you can render it directly to the active browser
1 Like
  1. What is the console used for?
    The Console is used as a tool for the web development process.
    You can write, manage and monitor JavaScript on demand and interact with the web page. You can also log information, debug and analyse network activity.

  2. How do you open the Console in Google Chrome?
    Navigate to the menu, select „More Tools“, then „Developer Tools“.
    In top menu bar you can find “Console”.

  3. What does console.log function do?
    The console.log function let you try out JavaScript code in real time.

  4. How can you change the contents of an HTML page through the console?
    Going to the tab “Elements” and modifying the tags by double clicking.

1 Like

1.Console provides the ability to write, manage, and monitor JavaScript.
2. menu/more tools/developer tools/console
3. console.log function allows to display the text or results of calculations directly on the page but inside the console on the next string
4. using DOM three, tab “elements” inside developer tools

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

  2. How do you open the Console in Google Chrome?
    ctrl-shift-J

  3. What does console.log function do?
    The console allows one to send output to the JS Console rather than the web page (which would consistently need a response)

  4. How can you change the contents of an HTML page through the console?
    You can change content using JS functions in the Console or ‘edit as HTML’ in Inspector in Firefox and in Elements in Chrome.

1 Like
  1. What is the console used for?
    The console is used to interact with the web page elements, manipulate the structure, execute javascript code and check javascript errors.
  1. How do you open the Console in Google Chrome?
    Ctrl + shift + J
  1. What does console.log function do?
    It prints an output on the console.
  1. How can you change the contents of an HTML page through the console?
    Using the inspector option of the browser we can modify the elements and see directly the changes on the webpage. These changes are not permanent though, once we refresh the page they will be lost.
1 Like