The 'if' Statement in JavaScript

Here's an example of the if statement:

if(username == 'Jim') {
    alert('Hello Jim');
}

If username has the value Jim, the user will see the message Hello Jim.

Next: The 'else if' Statement

Comments

Leave a comment

What color are brown eyes? (spam prevention)
Submit
Code under MIT License unless otherwise indicated.
© 2020, Downranked, LLC.