JavaScript Fundamentals
Think like the computer, one line at a time.
Study & career skills · Beginner · English · 2 lessons · 26 min
By the end you should be able to
- Write and call functions
- Use parameters and return values
- Predict variable scope
Key points, lesson by lesson
Module 1 · Functions
Functions: reusable machines · 14 min
Define a function, call it with arguments and use its return value.
- Functions package reusable logic.
- Arguments fill parameters.
- `return` sends the result back.
Scope: where variables live · 12 min
Predict which variable a line of code refers to.
- Variables declared inside a function are local.
- A local variable can shadow a global one with the same name.
Before you start: None
skillspring · Lesson content by SkillSpring. Printed for personal study.