DEV Community

Discussion on: JavaScript Interview Question #17: Sum of Two Empty Arrays

Collapse
 
jmitchell38488 profile image
Justin Mitchell • Edited

Ohhhh this is a straight up bad example. I would not ask a junior this.

Yes, tests knowledge, but this is not an example you're ever likely to see in a real application. Anyone using this code who's not a grad or an intern is going to get a talking to and some help.

Loose equality is just equality, you're thinking strict & non strict equality.

This sort of stuff is code from 10+ years ago.