Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // this is a comment
  2.  
  3. // You assign variables like this in JavaScript
  4. // Instead of Dim a you'd write
  5.  
  6. var a
  7.  
  8. // as you can see, it's the same, just using the word 'var' instead of 'Dim'.
  9. // But there's one other thing I have to add.
  10.  
  11. var a;
  12.  
  13. // The semicolon terminates the line. It's not always necessary, but it's
  14. // good practice to use it.
  15.  
  16. // You assign a value like this
  17.  
  18. var a = "Hello, world";
  19.  
  20. // see?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement