What is the output of the following code?
let loopVar = 0; while (loopVar < 4) { loopVar++; console.log(loopVar); }
Click to view the answer
1 2 3 4