5
SD010
9y

When you are asked in the interview to output something like given below with only using JS closure and without using a global variable or function caching in JavaScript:
myAddFunc(1,2); // output: 3
myAddFunc(4,5); // output: 3 + 9=12
.
.
.
.
.
True Fucking Story :(

Comments
  • 0
    i had a similar problem, but they asked me to make a "Dinamic Object Collection" with an iterator and other stuff while they were watching me and my monitor through Hangouts... i literally opened the console and typed what came to my mind.
    At the end, the interviewer said i did some weird shit on the console, but that it seems that i knew what i was doing. After other 3 more interviews. I have the Job
Add Comment