DEV Community

loading...

Discussion on: Basic JavaScript Interview Questions

Collapse
aleaallee profile image
Alejandro esquivel

How common are queues, stacks, hash maps and linked lists in web development? I've never heard those terms in all my years learning and working as a web developer.

Collapse
dverybest profile image
Charles Best Author

These may not be something you implement/use in your everyday web development, but understanding them can mean you have basic understanding of code execution in JavaScript. Things like the "call stack", "Memory Heap", "callback queue" and "event loop".

Collapse
aleaallee profile image
Alejandro esquivel

I've only heard about them when I was learning Java a couple years ago but forgot about those terms because I never had to think about them xD.

Collapse
drkvogel profile image
Chris Bird

They are things in computer science, sure, but perhaps not used in frontend development very much. Certainly "call stack" and "Memory Heap" referenced by the OP are things that exist, but are not really necessary to do frontend web development. Backend is a different matter...

Collapse
darkwiiplayer profile image
DarkWiiPlayer

You probably (indirectly) use Hashmaps quite often: V8 uses them to represent objects when it can't find a good way to optimize their layout.