Skip to content

Instantly share code, notes, and snippets.

@sampathsl sampathsl/index3.js
Created Dec 13, 2015

Embed
What would you like to do?
ES6 - Const keyword
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
You can’t perform that action at this time.