dequeue() {
        if (this.items.length > 0) {
            return this.items.shift();
        } else
            return false;
    }
// removing 1st element from the queue

removing 1st element from the queue
removing 1st element from the queue
dequeue() {
        if (this.items.length > 0) {
            return this.items.shift();
        } else
            return false;
    }
dequeue ( ) { if ( this . items . length > 0 ) { return this . items . shift ( ) ; } else return false ; }
removing 1st element from the queue
removing 1st element from the queue