Skip to content

Videos

JavaScript

Pick a topic to watch.

15 video lessons

2:37 Lesson 1 console.log and comments JavaScript is the language your browser already speaks. It runs inside the page you are looking at — no … 2:25 Lesson 2 Variables — let and const A program that cannot remember anything can only ever be one line long. A variable is a box with a name … 2:08 Lesson 3 Numbers and maths JavaScript does arithmetic without being taught. Plus and minus and star add, subtract, multiply — and t… 2:40 Lesson 4 Strings Numbers you can add. Text you cannot - and joining it turns out to be its own small skill. A string is t… 2:22 Lesson 5 Template literals You already know how to build a sentence out of pieces: joining with pluses. It works, and it gets ugly … 2:28 Lesson 6 Booleans and comparisons So far your values have been numbers and strings. Here is a third kind, and it has only two values in th… 2:26 Lesson 7 if / else So far every line you wrote ran. Nothing in your programs has been able to decide not to. An if in JavaS… 2:33 Lesson 8 for loops A JavaScript for loop packs three separate jobs into one set of brackets, separated by two semicolons. T… 2:26 Lesson 9 while loops A for loop is right when the number of passes is written down in the loop itself — one to five is five p… 2:24 Lesson 10 Functions You have written the same three lines twice already, and this page is only going to get longer. A functi… 1:57 Lesson 11 Arrow functions Start with the function you already know how to write. First, give the function a name by storing it in … 2:27 Lesson 12 Arrays You can hold one score in a variable. Holding a whole class of them needs something that counts. An arra… 2:14 Lesson 13 Array methods Doubling every number in an array is something you can already do: make an empty array, write the loop y… 2:17 Lesson 14 Objects An array holds a list of similar things. An object holds different facts about ONE thing. You could keep… 2:04 Lesson 15 Putting it together One more loop before the end, and it is the one you will reach for most. The version you know needs a co…

Log in or create account

IGCSE, A-Level & AP