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


Groups > comp.lang.javascript > #24827 > unrolled thread

Re: Possible error in the MDN Guide?

Started byThomas 'PointedEars' Lahn <PointedEars@web.de>
First post2014-06-13 20:12 +0200
Last post2014-06-13 20:12 +0200
Articles 1 — 1 participant

Back to article view | Back to comp.lang.javascript

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Possible error in the MDN Guide? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-06-13 20:12 +0200

#24827 — Re: Possible error in the MDN Guide?

FromThomas 'PointedEars' Lahn <PointedEars@web.de>
Date2014-06-13 20:12 +0200
SubjectRe: Possible error in the MDN Guide?
Message-ID<6105472.Lyi25CZm0M@PointedEars.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.

[toc] | [standalone]


Back to top | Article view | comp.lang.javascript


csiph-web