sissou123

Untitled

Mar 18th, 2022
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. JavaScript Algorithms and Data Structures
  2. Basic JavaScript
  3. Storing Values with the Assignment Operator
  4. In JavaScript, you can store a value in a variable with the assignment operator (=).
  5.  
  6. myVariable = 5;
  7. This assigns the Number value 5 to myVariable.
  8.  
  9. If there are any calculations to the right of the = operator, those are performed before the value is assigned to the variable on the left of the operator.
  10.  
  11. var myVar;
  12. myVar = 5;
  13. First, this code creates a variable named myVar. Then, the code assigns 5 to myVar. Now, if myVar appears again in the code, the program will treat it as if it is 5.
  14. for more:https://bit.ly/3u8M8Yq
Add Comment
Please, Sign In to add comment