r/learnjavascript • • May 16 '22

Explanation of a queue data structure in JavaScript

Post image
263 Upvotes

27 comments sorted by

View all comments

31

u/PM_ME_A_WEBSITE_IDEA May 16 '22

Excuse my naivety but is this not just an array with more steps and less functionality? I suppose maybe the restricted functionality is to avoid making mistakes?

13

u/[deleted] May 16 '22

[removed] — view removed comment

1

u/PM_ME_A_WEBSITE_IDEA May 16 '22

Interesting, good to know!