stack a tutorial of stack by javascript last in first out in /------------ -> 4, 3, 2, 1 /------------ out /------------ 4 <- 3, 2, 1 /------------