Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
fryan
on Oct 24, 2016
|
parent
|
context
|
favorite
| on:
Overview of JavaScript ES6 features
const foo = {bar: 1}
The only thing const about it is the reference `foo` cannot be reassigned:
foo = something_else; // error
Unlike `const` in C++, `const` in javascript in not very useful in my opinion. `let` is shorter and more readable.
Consider applying for YC's Spring batch! Applications are open till Feb 11.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: