Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #24827
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: Possible error in the MDN Guide? |
| Date | 2014-06-13 20:12 +0200 |
| Organization | PointedEars Software (PES) |
| Message-ID | <6105472.Lyi25CZm0M@PointedEars.de> (permalink) |
| References | <MDN-20140613192006@ram.dialup.fu-berlin.de> |
Stefan Ram wrote:
> 2..constructor.prototype.show = function(){ return "[" + this + "]"; }
> document.writeln( -2..show() );
> […]
>
> The output was:
>
> NaN
>
> . As far as I understand it, this shows that »-« is treated
> as an operator and not as a part of the floating-point literal.
> Otherwise, I would have expected the output
>
> [-2]
Correct.
> .
Please learn proper punctuation.
--
PointedEars
FAQ: <http://PointedEars.de/faq> | SVN: <http://PointedEars.de/wsvn/>
Twitter: @PointedEars2 | ES Matrix: <http://PointedEars.de/es-matrix>
Please do not Cc: me. / Bitte keine Kopien per E-Mail.
Back to comp.lang.javascript | Previous | Next | Find similar | Unroll thread
Re: Possible error in the MDN Guide? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-06-13 20:12 +0200
csiph-web