Nice answers, @Supremedonut
Just to extend Q4ā¦
ā¦and then by writing JavaScript code (directly in the console) which accesses and manipulates the pageās Document Object Model (DOM).
Nice answers, @Supremedonut
Just to extend Q4ā¦
ā¦and then by writing JavaScript code (directly in the console) which accesses and manipulates the pageās Document Object Model (DOM).
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?
the menu -> More Tools -> Developer Tools -> console
F12 key
What does console.log function do?
In the console, it can check variables and expression value
How can you change the contents of an HTML page through the console?
In elements, change elementās context, document function in console
humm, I am still trying to grasp this with something I know. How about this analogy.
HTML documents are mere ideas on paper, essentially a cartoon with captions: Web 1.0, you are reading a book.
DOM is the animation of the cartoonsā¦spirit is breathed into them that gives them life: Web 2.0. This would be the dream state, youāve read a book but the darn thing goes off script in the dream state.
Web 3.0 is the dream made flesh? 3-d physical AI?
The definition in the article is that the Console āprovides you with the ability to write, manage, and monitor JavaScript on demand.ā I am not a developer, but my noobie impression is that the console is basically just a test environment where you can monitor your JavaScript development in the context of a page.
Three dots - more tools - developer tools - console tab
Allows you to see outputs within the console (as opposed alert pop ups, etc)
My impression is you canāt - seems you need to save any code entered into the console and apply it in your main source code, am I guessing there is more to it than that.
Yes, Command + Option + J will be with a Mac OS.
What is the console used for? The Console provides you with the ability to write, manage, and monitor JavaScript on demand.
How do you open the Console in Google Chrome? 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.
What does console.log function do? 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, additionally 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? Using JavaScript commands you can edit the HTML.
What is the console used for?
The console allows us to interact with a web page by carrying out JavaScript expressions within the pageās context
How do you open the Console in Google Chrome?
Browser Menu
More Tools
Console
or CTRL + SHIFT + J on Linux/PC and COMMAND + OPTION + J on Mac
What does console.log function do?
Allows us to log information directly in the console
How can you change the contents of an HTML page through the console?
open up the Console and begin working with JavaScript to modify the page
Personally, I would see the DOM itself as still Web 1.0, because itās still the static HTML, but in object form ā now ready and waiting for us to plug in JavaScript. Itās JavaScript working via the DOM that breathes spirit into our cartoons with captions and gives us our dynamic Web 2.0. I guess you could say that the DOM is HTML getting itself dressed up and ready to be whisked off its feet by JavaScript and into the world of Web 2.0.
Now weāre bordering on me having to split this off into a new topic ā Philosophy for Blockchain Programmers
My understanding of Web 3.0 is that it is more a term used for our now dynamic Web 2.0 pages at the frontend being able to interact with decentralised smart contracts deployed on a blockchain (at the backend) i.e. dapps ā the data is now coming from and being sent to a decentralised blockchain rather than a centrally managed server.
1 - What is the console used for?
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.
This will open a panel where you can click on Console along the top menu bar to bring up the JavaScript Console.
3 - What does console.log function do?
console.log allows one to print out JavaScript content within the Console, without having to deal with pop-up alerts that needs to be continuously interacted with to close.
4 - How can you change the contents of an HTML page through the console?
The visible content of a page is within the body tag == document.body.innerHTML = ā¦
The body node is not the actual top of the literal HTML tree. Instead, the page content tree starts with a node
called the document. The document node has a child called html. The html node has the node called body.
node.
Maybe a better topic for the pub, that is before social distancing rubbish. Hereās a british twist to it quoting āStingā of the Police from the 1981 Album Ghost in the Machineā¦āwe are spirits in the material worldāā¦lol, cheers mate (Iām 1/2 british, born in Bristol)
yes, best for pub nite chat referencing Sting from the Police, 1981 album āThe Ghost in the Machineā
Spirits in the Material World
There is no political solution
To our troubled evolution
Have no faith in constitution
There is no bloody revolution
We are spirits in the material world
Are spirits in the material world
Are spirits in the material world
Are spirits in the material world
Our so-called leaders speak
With words they try to jail you
They subjugate the meek
But itās the rhetoric of failure
We are spirits in the material world
Are spirits in the material world
Are spirits in the material world
Are spirits in the material world
Where does the answer lie?
Living from day to day
If itās something we canāt buy
There must be another way {insert boolean logic, blockchain}
We are spirits in the material world
Are spirits in the material world
Are spirits in the material world
Are spirits in the material world
Are spirits in the material world
Are spirits in the material world
What is the console used for?
To provide the ability to write, manage and monitor JavaScript on demand.
How do you open the Console in Google Chrome?
right side 3 dots, click it, select āmore toolsā, development tools, or ctrl+Alt+J
What does console.log function do?
The Console.log() does print any variable or text that is between the parenthesis.
How can you change the contents of an HTML page through the console?
Writing JS on the console, the results will be shown on run time.
The console lets you have a way of interacting with the javascript on a web page. Itās helpful for logging output and debugging code.
Open the console via the main browser menu > More tools > Developer Tools, or just F12, then click on the Console tab if not already open.
Console.log function is like a wrapper that returns the value of what itās passed, so a number, string, text, HTML will be echoed in the browser console area. Javascript output will be shown in console.
HTML can be modified via the console. Changes made via the console are temporary as the saved file is not modified. The console allows us a way to experiment with javascript.
CTRL
+ SHIFT
+ J
on Linux or Windows, or COMMAND
+ OPTION
+ J
on macOS, which will bring focus immediately to the Console.The console provides you with the ability to write, manage and monitor javascript on demand.
Ctrl + Shift + J
Console.log function 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.
You are not changing the HTML document when you do things on the console.
Good answers, @angieww
By the way what keyboard are you using?
Normally, itās Ctrl + Shift + J (or I)ā¦