Last active
May 4, 2016 05:52
-
-
Save mariyadiminsky/96e0d9fd9380aa50a85e30939c10ca35 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
// sometimes used as lowercase as when setting up your server. | |
const express = require(‘express’); | |
const app = express(); | |
// sometimes uppercase. | |
const DONT_CHANGE_ME_MAN = “I ain’t changing for no one, man.” | |
// change attempt #1 | |
const DONT_CHANGE_ME_MAN = “I told I ain’t changing for no one.” | |
// change attempt #2 | |
var DONT_CHANGE_ME_MAN = “Still not changing, bro.” | |
// change attempt #3 | |
DONT_CHANGE_ME_MAN = “Haha, nice try, still not happening.” | |
// same error for all 3 attempts, const value stays the same: | |
Uncaught TypeError: Identifier ‘const DONT_CHANGE_ME_MAN’ has already been declared. | |
// DONT_CHANGE_ME_MAN still results in “I ain’t changing for no one, man.” |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment