Re: Creating constants in JavaScript
- From: "Evertjan." <exjxw.hannivoort@xxxxxxxxxxxx>
- Date: 16 Feb 2007 08:32:16 GMT
Trevor L. wrote on 16 feb 2007 in microsoft.public.scripting.jscript:
I seem to recall other suggestions that the thing do now is "Get
another newsreader". Having to find one and learn how to use it could
be a problem
If that is a problem for you, how could you learn to understand the
difference between a variable and a constant?
===============
Pseudo constant in javascript:
<script type='text/javascript'>
function myPseudoConstant() { return 4; };
alert ( myPseudoConstant() + 10 ) // 14
</script>
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
.
- Follow-Ups:
- Re: Creating constants in JavaScript
- From: Trevor L.
- Re: Creating constants in JavaScript
- References:
- Creating constants in JavaScript
- From: Doogie
- Re: Creating constants in JavaScript
- From: Trevor L.
- Re: Creating constants in JavaScript
- From: Dr J R Stockton
- Re: Creating constants in JavaScript
- From: Trevor L.
- Creating constants in JavaScript
- Prev by Date: Re: Creating constants in JavaScript
- Next by Date: Re: Convert ascii to keycode???
- Previous by thread: Re: Creating constants in JavaScript
- Next by thread: Re: Creating constants in JavaScript
- Index(es):