JavaScript Notes and Examples

Getting Started with JS

In path/to/my-js-stuff, create

index.html:

style.css:

main.js:

Then:

  1. open your browser to file:///path/to/my-js-stuff/index.html,
  2. toggle on “Tools –> Web Developer –> Toggle Tools”, and
  3. go to the Console tab.

Reload the page to refresh the console and re-run your code in main.js.