Advertisement
bolo17

Untitled

Mar 30th, 2022
823
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. Assigning the Value of One Variable to Another
  4. After a value is assigned to a variable using the assignment operator, you can assign the value of that variable to another variable using the assignment operator.
  5.  
  6. var myVar;
  7. myVar = 5;
  8. var myNum;
  9. myNum = myVar;
  10. The above declares a myVar variable with no value, then assigns it the value 5. Next, a variable named myNum is declared with no value. Then, the contents of myVar (which is 5) is assigned to the variable myNum. Now, myNum also has the value of 5.
  11. for more: https://www.clictune.com/eBEX
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement