Let’s learn about the most basic concept of any programming language, which is how to store data. You will also learn about what are literals and variables.
So you just learned how to declare a variable. Kudos to you!
Now let’s understand some more properties about declaring variables.
So you just learned that the variables can be declared and assigned a value on the same line. Isn’t that easy and nifty?
Let’s move to the part where you can take input from the user and store it in a variable.
In the last video, you learned that prompt() function does exactly what its name suggests. It prompts the user to input something, and then that input given by the user can be stored in a variable.