Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.

Timeline for Are there constants in JavaScript?

Current License: CC BY-SA 2.5

3 events
when toggle format what by license comment
Aug 5, 2012 at 16:49 comment added Zaq I do believe that private is a future reserved word in JavaScript, I wouldn't use that if I were you.
Jan 11, 2010 at 23:20 comment added Thomas Eding CONFIG.get = someNewFunctionThatBreaksTheCode... All in all, you absolutely cannot enforce constants in JS (w/o const keyword). Just about the only thing you can do is limit visibility.
Sep 25, 2008 at 3:14 history answered Burke CC BY-SA 2.5