Creating constants in JavaScript
- From: "Doogie" <dnlwhite@xxxxxxxxxx>
- Date: 13 Feb 2007 15:42:32 -0800
How do you create a constant in JavaScript? I tried all of the
following and they didn't work:
static final var MY_CONSTANT = "Test";
static var MY_CONSTANT = "Test;
static const var MY_CONSTANT = "Test";
static const MY_CONSTANT = "Test";
const var MY_CONSTANT = "Test";
const MY_CONSTANT = "Test";
.
- Follow-Ups:
- Re: Creating constants in JavaScript
- From: Giles
- Re: Creating constants in JavaScript
- From: Martin Honnen
- Re: Creating constants in JavaScript
- From: Randy Webb
- Re: Creating constants in JavaScript
- From: Trevor L.
- Re: Creating constants in JavaScript
- Prev by Date: Scripting problem in drag!-)
- Next by Date: Re: Creating constants in JavaScript
- Previous by thread: Scripting problem in drag!-)
- Next by thread: Re: Creating constants in JavaScript
- Index(es):