Can you use constant variables in javascript?
Posted
by chobo2
on Stack Overflow
See other posts from Stack Overflow
or by chobo2
Published on 2010-05-12T18:06:19Z
Indexed on
2010/05/12
19:14 UTC
Read the original article
Hit count: 160
constants
|JavaScript
Hi
I am using visual studios 2010 and created a javascript file(jscript.js) and I saw on one page saying you can make constant variables in javascript like:
const x = 20;
bu to on another page I read it says you can't. So I am confused now what is it now?
Also in Visual studios when I write "const" it underlines it in the javascript file and goes syntax error.
© Stack Overflow or respective owner