Skip to content

Add a comment at the loop section - #212

Open
rayssarrsilva wants to merge 2 commits into
GitbookIO:masterfrom
rayssarrsilva:code_comment
Open

Add a comment at the loop section#212
rayssarrsilva wants to merge 2 commits into
GitbookIO:masterfrom
rayssarrsilva:code_comment

Conversation

@rayssarrsilva

Copy link
Copy Markdown

Add a comment that represents the output of the while loop

var i = 0;
do {
  document.write(i + " ");
  document.write(i + " "); // 0 1 2 3 4 5 6 7 8 9
  i++; // incrementing i by 1
} while (i < 10);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant