What line of code should you use to display each room type on a new line?
JS Practice: ITS Certification

Quiz
•
Computers
•
12th Grade
•
Medium

Nixon Lopez
Used 3+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
document.getElementById("para").innerHTML += rooms[i] + "<br/>";
document.getElementById("para").innerHTML += rooms[i] + <br/>;
document.getElementById("para").innerHTML += rooms[i] ";
document.getElementById("para").innerHTML = rooms[i] + "<br/>";
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which event attributes should be used to change the text when the mouse hovers over a paragraph?
onmouseover, onmouseout
onclick, onchange
onchange, onmouseup
onmouseover, onmouseup
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you access the element with id section1?
getElementsByTagName('section1')
getElementById('section1')
getElementsByName('section1')
getElementsByClassName('section1')
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What line of code correctly appends an item to an existing array fruits?
push
append
add
insert
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you handle an exception in JavaScript to ensure a block of code executes regardless of whether an error occurs?
finally
done
complete
end
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Several HTML pages need to reference the same JavaScript code.
Where should the JavaScript code live?
In a .css file
Within the head tags of each document
In a .js file
Within the body tags of each document
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
You need to determine whether the variable x is null.
What is the correct syntax?
x == null
x == “null”
x = null
x typeof null
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
IDs and Classes

Quiz
•
9th - 12th Grade
11 questions
HTML CSS - Missing Symbols

Quiz
•
9th - 12th Grade
15 questions
MM - JavaScript

Quiz
•
12th Grade
15 questions
HTML CSS JS Review

Quiz
•
12th Grade
10 questions
JavaScript #4: DOM

Quiz
•
12th Grade
10 questions
Java Script

Quiz
•
10th - 12th Grade
15 questions
HTML CSS

Quiz
•
10th - 12th Grade
15 questions
Vacation 12th Batch 2023 Final Test

Quiz
•
12th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University