DEV Community

Discussion on: Guess the output of this JS code

0shuvo0 profile image
Shuvo Author

Yes, It was just a trick question for newbies

lukeshiru profile image

I know, and my comment is explaining "newbies" that you don't always have to resolve the problem in interviews. Sometimes the best answer is: "I don't understand your code/intention", instead of banging your head against the keyboard.