Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // this is a comment
- // You assign variables like this in JavaScript
- // Instead of Dim a you'd write
- var a
- // as you can see, it's the same, just using the word 'var' instead of 'Dim'.
- // But there's one other thing I have to add.
- var a;
- // The semicolon terminates the line. It's not always necessary, but it's
- // good practice to use it.
- // You assign a value like this
- var a = "Hello, world";
- // see?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement