Last active
November 28, 2016 04:13
-
-
Save dannyid/0f45e8e3b22b2e64590d554f952e5e9f to your computer and use it in GitHub Desktop.
Javascript puzzle.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Given: | |
var i = '1'; | |
// 1. What is the value of the below expression? | |
// 2. What is the value of `i` afterwards? | |
++i + +i+++i+i +++i+i+i+++i++ +i+++i; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment