Advertisement
sissou123

Untitled

May 1st, 2022
1,285
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Initializing Variables with the Assignment Operator
  2. It is common to initialize a variable to an initial value in the same line as it is declared.
  3.  
  4. var myVar = 0;
  5. Creates a new variable called myVar and assigns it an initial value of 0.
  6.  
  7. Define a variable a with var and initialize it to a value of 9.
  8.  
  9. http://besturl.link/z7QZT
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement