What is a variable ??
Variables are a fundamental concept of any Programming language in the world, But what actually is a variable??? . We can say a variable is similitude to a container, where a value can be stored for recurrent use.
A variable is simply declared using the var keyword , followed by the variable name, one which a value is to be assigned, using the assignment operator = . See comprehensive example below.
var firstName = "Neymar" ; ⬇️. ⬇️. ↘️ *Value* *keyword*. ***Variable name*** console.log(firstName); console result ⬇️ // Neymar
What are data types???
Data types simply are the different ways in which values to be assigned to a variable (container) are denoted or regarded, owing to programming languages convention.