Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Here's an if statement program example:
- var age = 16;
- if (age < 16)
- {
- alert('you can not drive')
- }
- else
- {
- alert('you can drive')
- }
- It would alert "you can drive" because 16 is not less than 16.
- An escape sequence, which is the backslash in JavaScript "\" is that whatever element is after it, it'll be treated as a String character.
Add Comment
Please, Sign In to add comment