Our great sponsors
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
It’s very clearly a gotcha, if you’re into JS you also know it’s fucking weird and has a lot of illogical behaviour. There are thousands of examples of JS quirks out there. If I was presented with a question like this I could reason my way to a logical answer, but I would be questioning the interviewers motives and whether they are trying to trip me up with a gotcha.
It absolutely is standard, you see spread operator in code everywhere. In fact the first repo in the first file I opened had it. If a JS developer I was looking to hire didn't know [..."123"] became ["1", "2", "3"] I would not hire them full stop.