[JavaScript] Tip & Technic
in Devlog on JavaScript, Devlog, Tip, Technic
자료구조
- Queue
Queue
FIFO
Example
const queue =[]
queue.push(1)
queue.push(2)
console.log(queue)
const r = queue.shift()
stack
LIFO
const stack = []
stack.push(1)
stack.push(2)
var s = stack.pop()
console.log(s);
Event Loop
* loupe 사이트 참조