The output of the below code is:
<p id="demo"></p>
<script>
var text = "";
var i;
for (i = 0; i < 5; i++) {
text += "The number is " + i + "<br>";
}
document.getElementById("demo").innerHTML = text;
HTML, CSS, Javascript

Flashcard
•
Computers
•
11th - 12th Grade
•
Hard
Quizizz Content
FREE Resource
Student preview

19 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Back
The number is 0
The number is 1
The number is 2
The number is 3
The number is 4
2.
FLASHCARD QUESTION
Front
Which of the following is the largest heading? h2, h3, h4, h6
Back
h2
3.
FLASHCARD QUESTION
Front
HTML tag that defines a division or a section in an HTML document
Back
div
4.
FLASHCARD QUESTION
Front
HTML tag defines a hyperlink
Back
5.
FLASHCARD QUESTION
Front
Symbol used in JavaScript to define a program block
Back
{ }
6.
FLASHCARD QUESTION
Front
Symbol used to end a JavaScript statement
Back
;
7.
FLASHCARD QUESTION
Front
It adds interactivity to web pages.
Back
JavaScript
Create a free account and access millions of resources
Similar Resources on Quizizz
13 questions
EOPA Week 1 Vocabulary

Flashcard
•
11th Grade
18 questions
Web Dev Test Review

Flashcard
•
9th - 12th Grade
10 questions
HTML Tags Review

Flashcard
•
11th - 12th Grade
14 questions
Html e css

Flashcard
•
12th Grade
16 questions
Q3-2 Review Questions

Flashcard
•
11th Grade
17 questions
HTML BASICS Test

Flashcard
•
KG - University
15 questions
CSS ID vs. Class

Flashcard
•
9th - 12th Grade
15 questions
CSS ID vs. Class

Flashcard
•
9th - 12th Grade
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade