JavaScript Foundations
14 lessons. Start programming with values, variables, conditions, functions and collections. Build small programs with guided practice and two projects.
Complete beginners starting JavaScript.
Before you start: No prior programming experience required.
14 lessons · 37 exercises and projects. 2 free lessons and 5 free exercises. No account needed for free previews.
What you will learn
- Use values, conditions, functions, arrays and objects.
- Validate data and understand local promises with async/await.
- Build a shopping-list organizer and event-registration summary.
Lessons are included in Course access. Exercises and projects are included in Practice Pack access. Complete Bundle includes both. Compare access options.
← All courses and learning paths · Suggested next course: Debugging and Testing Code — JavaScript
Course lessons
01Running code, values, and outputDistinguish a value, printed output, and a returned answer.Free preview02Variables and basic calculationsName intermediate values and use arithmetic to calculate an answer.Free preview03Strings and template literalsCombine text and format values without accidental coercion.Course04Comparisons, Boolean logic, and strict equalityWrite explicit Boolean rules without implicit type conversion.Course05ConditionsChoose exactly one result using if, else if, and else.Course06Functions, parameters, and return valuesDefine and call a function with a clear input/output contract.Course07Arrays and indexingRead ordered values and avoid invalid positions.Course08Loops and accumulationProcess every array element and build a total, count, or new array.Course09Objects and property accessRead named fields while distinguishing missing and present values.Course10Array transformationsUse map, filter, and reduce for distinct transformation jobs.Course11Scope and mutationKeep call-local state and copy data before changing it.Course12Missing values, validation, and errorsValidate inputs explicitly and handle only expected failures.Course13Promises and basic async/awaitAwait a local promise and turn an expected rejection into a defined result.Course14Combining functions and testing behaviorCompose small transformations and check outputs, boundaries, and unchanged inputs.Course