Created
December 13, 2015 13:36
-
-
Save sampathsl/77e9b0d2700e7a122687 to your computer and use it in GitHub Desktop.
ES6 - Const keyword
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 PI = Math.PI; | |
console.log(PI); | |
//Can not assign value - TypeError: invalid assignment to const 'PI' | |
//PI = '1'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment