JavaScript General - What does "1"+2+4 evaluate to?
Interview Question Database For Software Developers
|
|
| What does "1"+2+4 evaluate to? | | What does "1"+2+4 evaluate to? | | By: |
Since "1" is a string, everything is a string, so the result is a string of "124".
| | ID: 2118 | Rank: 345 | Votes: 1 | Views: 118 | Submitted: 20080729 |
Copyright © 2008 FYIcenter.com
All rights in the contents of this Website are reserved by the individual author.
No part of the contents may be reproduced in any form without author's permission.
|
|
|