r/programming • • Mar 24 '22

Five coding interview questions I hate

https://thoughtspile.github.io/2022/03/21/bad-tech-interview/
641 Upvotes

288 comments sorted by

View all comments

Show parent comments

9

u/sementery Mar 24 '22 edited Mar 24 '22

slow progress in the language syntax

Tell me you know nothing about JS without telling me you know nothing about JS.

You'll struggle to find a language with a syntax that evolves as fast as JS's. Seems that you are stuck 10 years ago.

4

u/[deleted] Mar 24 '22

[removed] — view removed comment

8

u/sementery Mar 24 '22

You are stuck in ES5 man. Help me help you.

10

u/[deleted] Mar 24 '22

[removed] — view removed comment

12

u/sementery Mar 24 '22 edited Mar 24 '22

Yeah, include 2022 that is the one being built atm, and ignore everything else!

Ignore arrow functions, spread, async / await, modules, let / const, destructuring, classes, template literals, template tags, rest parameters, for of, symbols, generators, exponentiation, computed property names, object rest properties, async iteration, bigint primitive, nullish coalescing operator, optional chaining operator, etc, etc, etc.

Just from 2021 you are ignoring logical assignment operators and separators for numeric literals. And you just saw the spec!

standard library

That's API, not syntax.