Inside which HTML element do we put the JavaScript?
saldeee

Quiz
•
Computers
•
10th Grade
•
Hard
hope salde
Used 5+ times
FREE Resource
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
<js>
<script>
<javascript>
<scripting>
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct JavaScript syntax to change the content of the HTML element below? <p id="demo">This is a demonstration.</p>
document.getElemntByld("demo").innerHTML="hello world!";
document.getElementByName("p").innerHTML="hello world!";
#demo.innerHTML="hello world!";
document.getElemenr("p").innerHTML+="hello world!";
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Where is the correct place to insert a JavaScript?
Both the <head> section and the <body> section are correct
The <head> section
The <body> section
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct syntax for referring to an external script called "xxx.js"?
<script name="xxx.js">
<script href="xxx.js">
<script src="xxx.js">
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you write "Hello World" in an alert box?
msg("hello world");
alertBox("hello world");
msgBox("hello world");
alert("hello world");
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
how can you add a comment in a JavaScript?
<!--This is a comment-->
'This is a comment
//This is a comment
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you round the number 7.25, to the nearest integer?
rnd(7.25)
round(7.25)
Math.rnd(7.25)
Math.round(7.25)
8.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which operator is used to assign a value to a variable?
x
=
*
-
Similar Resources on Wayground
11 questions
Basic HTML Tags I

Quiz
•
9th - 12th Grade
10 questions
HTML Basics

Quiz
•
7th - 10th Grade
13 questions
JavaScript Variables

Quiz
•
3rd Grade - University
12 questions
Web Development

Quiz
•
8th - 10th Grade
10 questions
HTML Introduction

Quiz
•
3rd Grade - Professio...
7 questions
CSS/ JavaScript

Quiz
•
10th Grade
10 questions
Programación 4to - IVBim

Quiz
•
10th Grade
13 questions
Я - будущий программист

Quiz
•
10th Grade
Popular Resources on Wayground
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice

Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers

Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons

Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade