Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #9329

Re: Defining Constants

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail
From Dr J R Stockton <reply1150@merlyn.demon.co.uk>
Newsgroups comp.lang.javascript
Subject Re: Defining Constants
Date Fri, 16 Dec 2011 22:45:26 +0000
Organization Home
Lines 25
Message-ID <Jdl9urMGo86OFwTu@invalid.uk.co.demon.merlyn.invalid> (permalink)
References <c8nke7t4hcpkapltpsntad1d55k7le2q8u@4ax.com>
Mime-Version 1.0
Content-Type text/plain;charset=us-ascii
Injection-Info mx04.eternal-september.org; posting-host="UwYDIHu13GPq28RciNoAJA"; logging-data="23644"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+PUW2sXH1WmlwQKR73IN9HGuFWQ00UBxc="
User-Agent Turnpike/6.05-S (<hg+ExxAgcsscjA9uK+8bCnc9V5>)
Cancel-Lock sha1:EKvhbqljE8/CAocWnFpSZP8sj2o=
Xref x330-a1.tempe.blueboxinc.net comp.lang.javascript:9329

Show key headers only | View raw


In comp.lang.javascript message <c8nke7t4hcpkapltpsntad1d55k7le2q8u@4ax.
com>, Thu, 15 Dec 2011 14:42:00, Gene Wirchenko <genew@ocis.net> posted:

>
>1) Defined in Object
>
>     function JustDate()
>       {
>...
>       this.JDFmtISO8601=1;
>       this.JDFmtIMA=2;
>...

Avoid "JD" in this context; it already has an established meaning in
connection with dates.

Consider also

var GWC = { JDFmtISO8601 : 1 , JDFmtIMA : 2 , ... }

-- 
 (c) John Stockton, Surrey, UK.  ?@merlyn.demon.co.uk   Turnpike v6.05   MIME.
   Web  <http://www.merlyn.demon.co.uk/> - FAQish topics, acronyms, & links.
 Proper <= 4-line sig. separator as above, a line exactly "-- " (SonOfRFC1036)
 Do not Mail News to me. Before a reply, quote with ">" or "> " (SonOfRFC1036)

Back to comp.lang.javascript | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Defining Constants Gene Wirchenko <genew@ocis.net> - 2011-12-15 14:42 -0800
  Re: Defining Constants Stefan Weiss <krewecherl@gmail.com> - 2011-12-16 01:04 +0100
  Re: Defining Constants Dr J R Stockton <reply1150@merlyn.demon.co.uk> - 2011-12-16 22:45 +0000

csiph-web