Console - Reading Assignment

1-Console allows you to interact with a web page , you can write test and manage javascript
2-Chrome-menu-clic three dots–more tools-developer tools then top of page second item is console
3-allows you to make changes with no pop ups
4-I think using the DOM tool

Will have to spend some time playing with this to get a clear understanding.

1 Like
  1. The console is an environment that is similar to a terminal shell interface and it gives web designers the capability of trying out Javascript code in real time, testing new code on top of the loaded HTML file

  2. Either through Menu/More Tools/Developer Tools; or with “CTRL + SHIFT + J”

  3. console.log() prints, on the console, the result of the command given inside the parentheses

  4. The contents of an HTML page can be changed by accessing and editing the page’s DOM, Document Object Model, which is a tree of objects the browser creates when loading a webpage. In Google Chrome (or Brave) this can be done in the “Elements” tab of the Console

1 Like
  1. What is the console used for?
    Type JS code, get text output. The JavaScript Console provides you with a space to try out JavaScript code in real time.

  2. How do you open the Console in Google Chrome?
    From Developer Tools menu, or by right clicking Inspect and navigate to Console, or by using a shortcut.

  3. What does console.log function do?
    It prints text into the console.

  4. How can you change the contents of an HTML page through the console?
    By running set of JS commands and functions in the console one can modify the content and appearance of the page

1 Like

1. What is the console used for?
To write, manage and monitor Javascript directly in the browser and see the results immediately.

2. How do you open the Console in Google Chrome?
Control + Shift + K in Windows. Or Menu > More Tools > Developer Tools

3. What does console.log function do?
Outputs the result of the given input to the console

4. How can you change the contents of an HTML page through the console?
Open the html file in the browser, then use the console to write JavaScript that interacts with the webpage by using the document.body commands

1 Like
  1. What is the console used for? to test javascript in a real environment
  2. How do you open the Console in Google Chrome? ctl + shift + j
  3. What does console.log function do? executes a calculation or function
  4. How can you change the contents of an HTML page through the console? by articulating the appropriate JavaScript comand with in it.
1 Like

undefined
let d=newdate()
VM395:1 Uncaught ReferenceError: newdate is not defined
at :1:7
(anonymous) @ VM395:1
console.log(“today’s date is " +d);
VM486:1 Uncaught ReferenceError: d is not defined
at :1:33
(anonymous) @ VM486:1
console.log(Today’s date is” + d);

HI
NOt sure if this is the place to ask for help.
Here is my problem Am i missing something to get the output Today’s date is…
Thanks

VM581:1 Uncaught SyntaxError: missing ) after argument list
let d = new date();
VM633:1 Uncaught ReferenceError: date is not defined
at :1:9
(anonymous) @ VM633:1
console.log(Today’s date is" + d);
VM680:1 Uncaught SyntaxError: missing ) after argument list

1 With the console you can write, manage and monitor javascript on demand
2 go to top right in Chrome. 3 dots, choose more tools and choose developers tools
3 It prints some value to the screen
4 when opening the console in the browser, you can add, edit or remove java script code to it

1 Like

Sick heading bro

  1. What is the console used for? It is used to experient with, test, manage and monitor JS at your leisure
  2. How do you open the console in Chrome? By clicking the 3 vertical dots at the top right of the browser. Select "more tools" then "developer tools". A panel on the right side will open where you can click on the "console" tab at the top
  3. what does the console.log function do? It allows you to work within the console as opposed to constantly having to click out of pop-up windows etc. for example when usinig the alert function in JS. Simply type console.log instead of alert and it will have the same result as alert except without the popup window
  4. How can you change contents of HTML page in console? By typing and executing the code in the console whether it in HTML or JS
1 Like
  1. What is the console used for?
    It’s used for testing JavaScript code, to inspect elements, and execute commands.

  2. How do you open the Console in Google Chrome?
    Menu / More Tools / Developer Tools/ Console Tab.
    Or by using shortcuts:
    Microsoft: CTR + SHIFT + J
    MAC: CMD + OPTION + J

  3. What does console.log function do?
    It allows a developer to make changes to the website and the output will be contained within the console.

  4. How can you change the contents of an HTML page through the console?
    By changing the HTML code in the Elements tab.

1 Like

What is the console used for?

  • it can be used to log information of the java-script process handy for testing purposes before implementing into the website

  • also you can manage, monitor or write java-script during the execution-process in the browser.

  • it’s a tool to check if the script is correctly executed.

    How do you open the Console in Google Chrome?

  • with ctrl shift j

  • via the menu 1n the upperright corner and then developer tools

  • I’m used to pressing F12 and then the console-tab in Firefox

    What does console.log function do?

  • with console.log you can log/print information from the javascript-code during execution in the browser

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

  • by typing javascript-commands via the console you can add/modify properties or text in a webpage.

1 Like
  1. What is the console used for?

To test the code or interact and inspect various elements of the code. This can be helpful in the testing and debuging of code before making permanent changes.

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

You can simply right click the screen and select inspect.

  1. What does console.log function do?

Allows you to print directly to the console.

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

By using the document function you can directly edit the html code and make changes. These changes are not permanent and will disappear if the browser is refreshed.

1 Like

1 it s used to write or modify the source code of a website
2 In the setting windows or ctrl maj I
3 it can resolve any math request
4 By using js language or css

1 Like

1.- The console in the web browsers is used to provide a shell environment to experiment and launch JavaScript commands.
2.- In Google Chrome, you go to “Developer Tools” , or you can press “CTRL+SHIFT+i”, and one of the tabs is for the “Console”.
3.- The Console.Log() function prints to the console whatever input you had.
4.- By modifying the properties of the document object you can alter a website and experiment using the Console. However, the changes are not permanent.

1 Like
  1. the console is like a little tool that browsers have where we can use Javascript.

2.you go the top right corner and click on the three lines, the go to more tools, and then to developer tools and once there you click on the tab that says console.

  1. It seems that console.log shows information, solves problems, i cant really explain right now in the lecture we did several things with console.log so its function looks very vague to me.

  2. you can change an HTML trough the console by writing functions in it, like displaying the date and and text and you can also change the background color, and i suppose way more than that.

1 Like

What is the console used for?

It allows you to log information, read, write, monitor, and even interact with the webpage.

How do you open the Console in Google Chrome?

Go to the top right of your google chrome browser and click on the three vertical lines, then scroll down to More Tools, and then finally click on development tools. A panel will open, and you will need to click on the label for the console if it is not already open. If you would like to save some time, you can also use hotkeys. For Windows or Linux machines, use CTRL + SHIFT + J or COMMAND + OPTION + J on macOS.

What does the console.log function do?

It allows you to work from within the console without having to deal with pop-ups.

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

Open the browser inspector and double click on elements you would like to change. Remember that the changes are not permanent. If you would like to change them permanently, you will need to copy them and paste them into the actual file.

1 Like

Hey @monymike, hope you are great.

Indeed this is not the topic to ask those questions, please ask for help here: I am completely stuck

Carlos Z

  1. The console gives the ability to write, manage, and monitor javascript on demand.

  2. To open the 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.

  3. console.log logs a value as an output

  4. Using the document. object

1 Like
  1. What is the console used for?
    -The console gives you interactive control of your webpage and allows you to inspect and to test code. As our reading states, “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?
    -Shift-Ctrl-J
  3. What does console.log function do?
    -It allows pop-up alerts to be written to the console instead of having to click through them. We can print messages to the console using the console.log function.
  4. How can you change the contents of an HTML page through the console?
    -You can enter JavaScript commands directly in the console that will change the contents of an HTML page. For example, you could define a variable showing the current date and then display it on the webpage in a heading:
    let d = new Date();
    document.body.innerHTML = "

    Today’s date is " + d + “


    This produces the HTML: “

    Today’s date is Thu Oct 29 2020 13:47:48 GMT-0400 (Eastern Daylight Time)

1 Like
  1. The console allows users to monitor JavaScript´s activity on the web page, as well as interact with its content, editing and changing the page´s features, such as font and background color, font size, font type. It also allows monitoring the network activity on the page.

  2. It allows the user to perform actions and execute commands on the page, through JavaScript´s code.

  3. By executing JavaScript´s functions on the console.

1 Like
  1. the console gives you the ability to write, manage, and monitor javascript on demand.
  2. go to chrome settings, go to more tools, and click developer tools. then click on the console tab.
  3. console.log allows you to check for bugs in your programming syntax. it outputs the data within the ()
  4. in crhome go to the elements tab and modify the code.
1 Like