Question 12
Consider the below JavaScript program.
<script> for (var i = 0; i <= 3; i++) { setTimeout(() => console.log(i), (i+1)*1500); }</script>What will be the output of the above program, if executed? Also, predict the minimum number of seconds the program will take to complete the execution?