I have read some articles and learnt the basic of stack in Javascript, which it operates in LIFO principles. However, most of the tutorial I can find used nested function ca