์๋ฐ์คํฌ๋ฆฝํธ์์ ๋ด์ฅ ๋ฉ์๋ ์ฌ์ฉ x๋ฐฐ์ด์ ์ด์ฉํด ์ง์ ๊ตฌํ ํ ์ฌ์ฉ class Queue { items = []; front = 0; rear = 0; push(item) { this.items.push(item); this.rear++; } pop(){ return this.item[this.front++]; } isEmpty() { return this.front === this.rear; }}