Simple exercise that show a Queue in Javascript

Create a queue data structure. The queue should be a class with methods ‘add’ and ‘remove’.Adding to the queue should store an element until it is removed Examples const q = new Queue(); q.add(30); q.remove(); // 28 Solution Result: By Cristina Rojas.