Home » JavaScript » JavaScript While Loop » Question

JavaScript While Loop

  1. What are the three important manipulations done in a for loop on a loop variable?
    1. Initialization,Testing, Incrementation
    2. Testing, Updation, Testing
    3. Updation, Incrementation, Initialization
    4. Initialization,Testing, Updation
    5. None of these
Correct Option: D

In a for loop, the initialization, the test, and the update are the three crucial manipulations of a loop variable. Firstly the loop initialiases the variable then test the condition and then after executing the statement increments its value.



Your comments will be displayed only after manual approval.