DEV Community

Discussion on: JavaScript Interview Question #38: Can you add multiple arrays in JavaScript?

Collapse
 
anthager profile image
Anton

Ha! Always fun to see these things! But just as a heads up to people looking through this thread looking for advise for what to study before their interviews, stuff like this is not asked in interviews (atleast not in my experience) but there is a point of knowing that js sometimes does unexpected conversions. Just knowing that and answering "Im not sure but unexpected conversions might happen so I would try it out in the console" should be enough

Collapse
 
alphavader profile image
KB

This 100%

Collapse
 
coderslang profile image
Coderslang: Become a Software Engineer

Questions like this can tell the depth of the candidate's knowledge. I've seen "senior" devs completely fail and get pissed off with these "junior" questions.

Collapse
 
anthager profile image
Anton

That says something about their character and I definitely wouldnt want someone with that attitude in my team. But i could see why someone who would consider themselves senior getting frustrated when only asked trivia style questions and if an answer like "there might be fishy stuff going on here so I would just look it up" is not being accepted. Being senior is not having everything memorised, at least not in my book. But getting pissed of looks very bad indeed