Intelligence is simply talking to many people

Javascript notes

2 ways to put javascript on a page

<scripttttttt>alert('Hello world');</scriptttttttt>
a second file, called main.js
No need for <scripttttttt> tags because it's in the js file, so just put
alert('Hellow world');

To view this in the browser, you want Console (tab) in Developer Tools for whatever browser

You can type javascript in it, like


and it works

VOCABULARY The DOM is the user interface (selecting elements), as separate from the Console where actions are performed.

const = can't be changed (you can change the values of arrays variables etc though), and you have to put a value.

let = like an initial position

Comments: 0

Interested to discuss? Leave a comment.


Your email will not be published nor shared with anyone. In your text you can use markdown for marking up *italic*, links <> and other elements. These comments are moderated and published manually as soon as possible.