Console - Reading Assignment

  1. To write, manage, and monitor JavaScript on demand.
  • Menu->More tool->Developer tools

  • CTRL+SHIFT+J (Windows,Linux); COMMAND+OPTION+J (macOS)

  1. Logs value output to the console.
  2. By using document. element.
1 Like
  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.

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. This will open a panel where you can click on Console .

  1. console.log logs prints variables defined before in it or just print any message that needs to be displayed to user.

4)The Console provides you with a space to experiment with modifying HTML pages, you’re not changing the HTML document when you do things on the Console. Once you reload the page it will return to format you begun with.

You have to save any changes you would like to keep elsewhere.

However to modify things in html you can for example type
>> document.body.style.backgroundColor = “lightblue”;
This will change pages background to light blue.

1 Like
  1. What is the console used for?
    A: 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. Ultimately, the Console gives you the ability to write, manage, and monitor JavaScript on demand.

  2. How do you open the Console in Google Chrome?
    A: 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?
    A: It works with the Java script. It gives you the ability to try out JavaScript code in real time by letting you use an environment similar to a terminal shell interface.

  4. How can you change the contents of an HTML page through the console?
    A:The Console provides you with a space to experiment with modifying HTML pages, but thats it. Once you reload the page it will retune back to a normal blank page.

1 Like

IVAN ON TECH

ASSIGNMENT TWO --JAVA SCRIPT

Questions and Answers 1
1, What is a Console?
It is a tool that is used in combination with Java Script. It provides us with the ability to write, manage and monitor JavaScript on demand. It is used as a part of the development process for Java Script, allows us to carry out JavaScript expressions within page’s context. Also used for testing purposes
2, How do you open the console in Google Chrome?
Open Google Chrome browser, click on the three little dots on the upper right hand conner of your browser. Select More tools then click on Developer tools. Click on Console to bring up JavaScript Console
We can also access the JavaScript console using the key board by using
CTRL + SHIFT + J when using windows
Or
COMMAND + OPTION + J when using MacOS

3, What does Console.log function do?
We use console.log before our java script expressions or text. We use console.log to avoid pup-up alerts. It is used to in java script to print any message that needs to be displayed to the user/audience

4, How can you change the content of an HTML page through the console?.
In Microsoft click menu – more tools - developer tools or click F12 – console tab

MacOS Safari- preferences- advance and enable “show Develop menu in menu bar… then click Develop – show JavaScript console.

1 Like

1.the console provides you the ability to manage, write and monitor javascript
2.CTRL+SHIFT+J
3.It allows you a platform to test javascript by using a different but similiar to a terminal shell interface
4.Using “command” of a document inside the console

1 Like
  1. To write, manage and monitor Javascript within the web page of your browser.
  2. Menu>more tools>Developer Tools or F12 on PC. When panel pops up, select the “console” tab if not already there.
  3. It logs you into the console
  4. from the “Inspector” (firefox) or “elements” (chrome, brave) tab in the developer panel
1 Like
  • What is the console used for?

    The console it's used for provide the ablilties to write, manage and monitor JavaScript on demand, it's a shell interface, along with tools to inspect the DOM, debug and analyze network activity.
    
  • How do you open the Console in Google Chrome?

    In the menu at the top-right of the browser, then more tools, then developer tools.
    
  • What does console.log function do?

    To "print" a message of JavaScript in the console.
    
  • How can you change the contents of an HTML page through the console?

     By changing the codes like >> document.body.style.color="blue" and then send you the output "Blue" and it changes.
2 Likes
  1. What is the console used for?
    Console provides you with the ability to write, manage, and monitor JavaScript on demand. 2. How do you open the Console in Google Chrome?
    o 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:
  2. What does console.log function do?
    Logs info on to JS console.
  3. How can you change the contents of an HTML page through the console?
    By using the document element inside the console
1 Like
  1. to log information and to interact with the webpage
  2. Clicking the 3 dots on the upper right coner then selecting more tools then selecting the tab developer tools*
  3. 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 .
  4. The Console provides you with a space to experiment with modifying HTML pages*
1 Like

1, Allows you to interact with the webpage by carrying out JS expressions within the page’s context.
2, Go on the 3 horizontal dots on the up right corner :arrow_right: more tools :arrow_right: developer tools or with a button combination CTRL + Shift + J
3, Console.log is a function that writes messages to log on the Console
4, On Chrome, open developer tools , go on Elemets and double click on tag

1 Like
  1. to inspect the DOM, debug, and analyze network activity.
  2. Click the Hamburger Icon or The menu dots in the top right. From there go to more tools, from there, go to developer tools, and from there select console at the top.
  3. It logs it to the console. For example if you are using an alert function, you do not have to close out of the pop up continuously.
  4. You use the console and type in the changes you would like to make.
1 Like
  1. What is the console used for? for JavaScript development and experimentation. it provides the ability to write, manage, and monitor JavaScript without messing anything up permanently.
  2. How do you open the Console in Google Chrome? 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 prints out what is in the parenthesis and quotation marks if text in the next line upon hitting enter.
  4. 4 How can you change the contents of an HTML page through the console? by creating elements and hitting enter but it is only temporary.
1 Like

1. What is the console used for?

The console provides a coder with a place to write, log information, manage, and monitor JavaScript in real time.

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

On the Mac I use keyboard shortcut, CMD-OPT-I (command - option - I), then click on the “Console” tab.

3. What does console.log function do?

It is the alternative to the alert pop-up window when you want to print output to the screen.

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

Open the web page in the browser then save a copy of the HTML file to your computer. Open the page in a browser then open up the Console and add JavaScript to the page.

1 Like
  1. What is the console used for?

  2. It allows you to interact with a web page and provides you with the ability to write, manage and monitor JavaScript on demand. It allows you to test your code to see if it works.

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

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

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

  6. What does console.log function do?

  7. The way I understand not just from reading the article but google, YouTube, console.log allows you to perform outputs from your code, such as perform math equations or values without having to write the answer to each calculation instead It performs the actions for you and allows you to link a string of commands and saves a lot of time.

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

  9. By saving the html file and loading it into the browser of your choice, you open the console and you can begin working with the JavaScript to modify the page.

1 Like
  1. What is the console used for?
    Console is used for viewing the HTML+CSS+Javascript of website, editing (only until you reload), debugging and analyzing (for example network activity)

  2. How do you open the Console in Google Chrome?
    Ctrl+Shift+F or More preferencies -> Other tools -> Dev tools

  3. What does console.log function do?
    Get a result of inserted inuput.

  4. How can you change the contents of an HTML page through the console?
    Simply by inserting the code in JavaScript into Console, but the page will return to its original state after reloading the page.

1 Like
  1. The console is used to execute javascript code

  2. Top right menu > more tools > developer tools > console

  3. It displays the output within the console and not in the main browser page

  4. By using special javascript functions in the console like document.body.innerHTML

1 Like
1. What is the console used for?
   
• Log information.
• Interact with a web page
• Write, manage & monitor javaScript on demand.
  1. How do you open the Console in Google Chrome?
  • R ight c lick mouse> Select i nspect > Select Console tab
  • CRTL + SHIFT + J
  1. What does console.log function do?
  • It allows you to test your code by providing you with the value or string that it produces.
  • 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.
  1. How can you change the contents of an HTML page through the console?
  • Through the elements tab
1 Like
  1. The Console is used for; logging information and webpage interaction.
  2. While that may vary depending on OS, in general one can go to: Tools -> Developer Tools -> Console.
  3. Allows us to work within the Console with variables and see results.
  4. Utilizing document in Element, but for the change to be permanent you must save it or the work will be lost.
1 Like
  1. What is the console used for? Used to interact with web elements. Can use it to experiment with too.
  2. How do you open the Console in Google Chrome? Cntr+Shft+l
  3. ***What does console.log function do?***Allows programmer to log data and not publish to site.
  4. How can you change the contents of an HTML page through the console? open and inspect with dev tools. copy paste in atom and play. this is what those phone scammers do with team viewer and try to show you they accidentally gave you too much money in your bank account. Theyre just messing with dev tools.
1 Like

What is the console used for?
“Console provides you with the ability to write, manage, and monitor JavaScript on demand.”
You can interact with a web page by modifying or changing expressions in the context of a page.
How do you open the Console in Google Chrome?
Click on the ‘three dots’ in the upper right hand corner of the chrome browser.
- Go down to ‘more Tools’ and click on ‘Developer Tools’
Or on Mac: COMMAND + OPTION + J
Linux: CTRL + SHIFT + J
What does console.log function do?
It will print results in the console (from the console entry or from the page)
How can you change the contents of an HTML page through the console?
By enter information that gets put into the page or over writes the content.
The “=” will replace the body content:
document.body.innerHTML = "blah blah’
The “+=” would append to it.
You can use various tags to change the elements of the page for example
The body: document.body.innerHTML
background color: document.body.style.backgroundColor
Text color: document.body.style.color
Creation of elements: let p = document.createElement(“P”);
Creation of text blobs: let t = document.createTextNode(“Paragraph text.”);
And associating elements with text blobs: p.appendChild(t);
And finally appending to the page: document.body.appendChild§;

** NOTE: viewsource, inspector, javascript and console are often used for hacking into poorly designed sites.
finding access permissions, etc.

1 Like