W3Schools JavaScript Excercises
W3Schools JavaScript Examples
JavaScript is generally best learned in this order
Open a webpage and show the developer console; while you read about each topic, write JavaScript into the console and execute it. Interactive practice is how you learn JavaScript.
Debugging
Basics (mostly just going down the sidebar of the W3Schools JavaScript website:
Syntax
Statements
Variables
Comments
Functions
Objects
Data manipulation:
Operators
Arithmetic
Assignment
Numbers and their Methods
Math Object
Strings and their Methods
Data Types
Booleans
Arrays, their Methods, and Array Iteration
Parks’ guide on properties/methods of various objects
Program control:
if/else, also see Parks’ guide
Comparisons
For Loops
While Loops
Break and Continue
Switch
Parks’ take on loops
More about Functions:
Keep in mind that functions should be named as verbs.
Function Definitions
Function Parameters
More about Objects:
Keep in mind that objects/variables should be named as nouns.
Object Definitions
Object Properties
Object Methods
When you’re wanting to embed JavaScript in HTML:
Getting Started
Forms
A simple example by Parks
Accessing elements of a page:
The HTML Object Model
Accessing HTML Objects from the Script (Part I)
Declarations, Naming and Arrays
stopped at September 18 in syllabus