Skip to content

Instantly share code, notes, and snippets.

@mariyadiminsky
Last active May 4, 2016 05:52
Show Gist options
  • Save mariyadiminsky/96e0d9fd9380aa50a85e30939c10ca35 to your computer and use it in GitHub Desktop.
Save mariyadiminsky/96e0d9fd9380aa50a85e30939c10ca35 to your computer and use it in GitHub Desktop.
// 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