How should I write the JavaScript code such that the output will be "first", "second" and "third"
I’m trying to figure out a JavaScript code scope problem and I have simplified this to const first = () => { console.log("first"); } const second = (first) => { first(); console.log("second"); } const third = (second) => { second(); console.log("third"); } Based on three functions above, I am supposed to write code using only… Read More How should I write the JavaScript code such that the output will be "first", "second" and "third"