Learn JavaScript: Fundamentals
The first steps in JavaScript: print output, work with data types and operators, store values in variables, and control a program's flow with if, else if, switch and the ternary operator. Ends with three practice projects.
- Beginner level
- 4 modules
- 31 lessons
- 149 tasks and questions
Syllabus
01IntroductionMeet JavaScript: print to the console, leave comments for other people, and work with JavaScript's basic data types, arithmetic, and the properties and methods built into strings, numbers and Math.9 lessons
02VariablesStore values under descriptive names with const and let, update numbers and strings, build messages with template literals, and check a value's type with typeof. Finish by planning the fuel budget for a road trip.8 lessons
03ConditionalsTeach your programs to make decisions with if, else and else if, compare values, combine conditions with logical operators, lean on truthy and falsy values, and pick between options with the ternary operator and switch.10 lessons
04Practice ProjectsThree small programs that combine variables, strings, operators and every kind of conditional: a cinema ticket pricer, a password strength checker and a shipping quote calculator.4 lessons