r/webdev • • Apr 07 '23

How I interview for FE positions

Post image
4.6k Upvotes

668 comments sorted by

View all comments

Show parent comments

10

u/[deleted] Apr 07 '23

The four horsemen of "tricky" JavaScript questions:

  1. Hoisting

  2. Currying

  3. Closure

  4. Can't think of the fourth one 😂

7

u/vklepov Apr 07 '23

Doing nasty stuff with prototypes!

1

u/Nokia-Bird Apr 09 '23

I'm a new dev under training still. Can I shoot a quick DM pls?

Tnx

3

u/nuclear_gandhii Apr 08 '23

The kind of questions managers love to ask as interview questions but would reject it in a PR for making the code too complex to understand

1

u/[deleted] Apr 07 '23

[removed] — view removed comment

1

u/[deleted] Apr 08 '23

add(x)(y) instead of add(x, y)

3

u/[deleted] Apr 08 '23

[removed] — view removed comment

2

u/drdaemos Apr 08 '23

You can pass add(x)() somewhere else and abstract a certain logic