Building a Queue

Data Structures in JavaScript

People Queue
Photo by Halacious on Unsplash
Figure 1: Node Class
Figure 2: Queue Class
Figure 3: Queue Class Add Function
Figure 4: Queue Class Remove Function
Figure 5: Queue Class Peek Function

isEmpty Function

Figure 6: Queue Class isEmpty Function

Additional Discussion

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Mathew Phillip Wheatley

I am a software engineer with a mechanical background. Interests swing from aerospace, to woodworking, travel, skiing, hiking, running, climbing, and lasers.