Mark As Completed Discussion

In this lesson, we will discuss basic elements in programming, with a focus on the following key points:

  1. What are variables and the assignment of variables in a programming language?
  2. Working with variables and assignment of variables in JavaScript.

This lesson is intended for web and frontend engineers. For the general purpose version of this lesson, please click here.

During any real-life work, we need to store a piece of information somewhere and refer to it later. We encounter these situations while creating a program and doing computation as well, where we often need to store some information or data temporarily somewhere. For this specific purpose, variables are used. These variables can store almost any type of data, whether they are numbers, strings, or lists. Data is stored in variables by assigning data values to them. This lesson will expand on this topic and discuss in detail variables and their assignment.