English
Tamil Nadu Board of Secondary EducationHSC Science Class 11

What will be the output for the following snippet: - Computer Applications

Advertisements
Advertisements

Question

What will be the output for the following snippet:

For (var n=0; n<10; n++)
{
if (n==3)
{
break;
}
document write (n+”<br>”);
}

Options

  • 0 1 2

  • 0 1 2 3

  • 0 1 2 3 4

  • 0 1 3

MCQ

Solution

0 1 2

shaalaa.com
Introduction of Conditional Statements in Java
  Is there an error in this question or solution?
Chapter 15: Control Structure in Javascript - Evaluation [Page 328]

APPEARS IN

Samacheer Kalvi Computer Applications [English] Class 11 TN Board
Chapter 15 Control Structure in Javascript
Evaluation | Q 7. | Page 328
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×