Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- IF you see
- Add a final else clause to this conditional statement so that if the isAdmin variable and isStudent variables are both false an alert opens with the message "Who are you?"
- The question is misleading ok.
- There is no "final:" clause.
- You would add multiple stacked if then conditionals.
- var isAdmin = false;
- var isStudent = false;
- if ( isAdmin ) {
- alert('Welcome administrator');
- } else if (isStudent) {
- alert('Welcome student');
- } else {
- alert('Who are you?');
- }
Add Comment
Please, Sign In to add comment