Search⌘ K

Remember Stuff

Explore how to create variables in JavaScript using let and const to store text and numbers. Learn to assign, update, and use variables to help your program remember and reuse information, laying the foundation for dynamic, interactive web apps.

Let’s teach JavaScript to remember things. In this lesson, you’ll learn about variables—they store data like names, scores, or anything else your program needs.

Goal

You will learn to:

  • Create variables using let and const.

  • Store text and numbers. ...