Are you sure you're getting this? Click the correct answer from the options.
What is the result of the execution of following code block?
SNIPPET
1var a = 5
2while (a <= 5){
3 if (a < 5){
4 break
5 }
6 console.log(a)
7}
Click the option that best answers the question.
- The program will loop indefinitely
- The value of a will be printed once
- The value of a will be printed 5 times
- The loop will not be executed