Created
August 2, 2018 20:51
-
-
Save wojtrawi/cfc7907529e068240ec3ebcfafd1d970 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var userName = 'Chris'; | |
var adminName = 'Greg'; | |
if (userName = adminName) { | |
console.log('Logged in as the admin'); | |
} else { | |
console.log('Logged in as a regular user'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment