मराठी
तामिळनाडू बोर्ड ऑफ सेकेंडरी एज्युकेशनएचएससी विज्ञान इयत्ता ११

Differentiate between while and do while statements. - Computer Applications

Advertisements
Advertisements

प्रश्न

Differentiate between while and do while statements.

फरक स्पष्ट करा

उत्तर

  • While:
  1. In Java Script while loop is most basic loop.
  2. First condition will be evaluated and then only based on the result of the condition the body of the loop will be executed or not.
  3. While loop is false not a single statement inside the loop is executed.
  • Do…while:
  1. The do…..while loop is like a while loop.
  2. The Body of the loop always executed at least once before the condition can be executed.
  3. Do while loop is false then also the body of the loop is executed.
shaalaa.com
Looping / Repetitive
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 15: Control Structure in Javascript - Evaluation [पृष्ठ ३२९]

APPEARS IN

सामाचीर कलवी Computer Applications [English] Class 11 TN Board
पाठ 15 Control Structure in Javascript
Evaluation | Q 4. | पृष्ठ ३२९
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×