Make the web do more
Bring your ideas to life with JavaScript. Learn the essentials, one practical example at a time.
What you’ll learn
- 01Values and variablesPreview
Change the learner name and increment the lesson counter once more.
- 02Work with a list
Add Python to the list. Use filter to keep only topics longer than three characters.
- 03Write a reusable function
Create a function that takes a course name and returns a message about what you are learning.
Before you start
No previous coding experience is needed. Use a laptop or desktop with an internet connection, a modern web browser, and a text editor. Lessons can be read on mobile, but a computer is best for the exercises.
Values and variables
JavaScript runs in your browser. Open the developer console to try this example. Use const when you will not reassign a variable and let when you will.
const learner = "You";
let completed = 0;
completed = completed + 1;
console.log(`${learner} completed ${completed} lesson!`);Change the learner name and increment the lesson counter once more.