Re: Creating constants in JavaScript

Tech-Archive recommends: Speed Up your PC by fixing your registry



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)
.