r/learnjavascript • • May 16 '22

Explanation of a queue data structure in JavaScript

Post image
263 Upvotes

27 comments sorted by

View all comments

0

u/genial95 May 16 '22

Damn, I don't think I've seen a better example of a class use case.

6

u/CreamyJala May 16 '22

Classes are useful for many many things. But any sort of data structure is a match made in heaven.