Created
August 2, 2018 20:50
-
-
Save wojtrawi/861ed5d62ffb2bff8a4dc96fc3826fdf 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
const userName = 'Chris'; | |
const 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