- Home /
Constants in javascript
Can I have a constant variables (variables that cannot be changed) in javascript? Or it is only available in C#?
Answer by Eric5h5 · Dec 12, 2011 at 03:48 AM
It's only available in C#.
If they get compiled to the same thing, whats stopping them adding in all the C# keywords in JS? Like args
, const
, out
Then why haven't they done anything? Those keywords are a key feature of the language, yet they are left out for js... why?
Because they apparently have decided it's not a high enough priority.
Your answer

Follow this Question
Related Questions
Why are there extra frames in Unity's Animation System? 3 Answers
Setting Scroll View Width GUILayout 1 Answer
Can someone help me fix my Javascript for Flickering Light? 6 Answers
Constant Yield Time 1 Answer
Setting CSS clock time from dropbox 0 Answers