What is the correct syntax for referring to an external script called "app.js"?

JavaScript Exercise Quiz

Quiz
•
Computers
•
9th - 12th Grade
•
Medium
WaiLin Htet
Used 1+ times
FREE Resource
85 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
<script href="app.js">
<script src="app.js">
<script ref="app.js">
<script link="app.js">
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
How do you write "Hello World" in an alert box?
alertBox("Hello World");
msg("Hello World");
alert("Hello World");
message("Hello World");
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which operator is used to assign a value to a variable?
=
==
===
:=
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What will typeof null return?
"null"
"object"
"undefined"
"string"
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
How do you create a function in JavaScript?
function myFunction() {}
def myFunction() {}
function:myFunction() {}
myFunction() = function {}
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which method is used to add an element to the end of an array?
push()
pop()
shift()
unshift()
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
How do you declare a variable in JavaScript?
var x;
variable x;
v x;
let = x;
Create a free account and access millions of resources
Similar Resources on Wayground
87 questions
Python Interview Questions

Quiz
•
12th Grade
90 questions
Belajar Tambahan - Dasar Program Keahlian TKJ

Quiz
•
9th - 12th Grade
82 questions
Uji Pemahaman Sistem Komputer

Quiz
•
9th Grade
85 questions
QUIZ AKHIR

Quiz
•
9th - 12th Grade
87 questions
GCSE ICT Revision Session

Quiz
•
10th - 11th Grade
81 questions
IGCSE ICT THEORY PART PRACTICE

Quiz
•
7th - 10th Grade
83 questions
C4.1 Types of software and interrupts

Quiz
•
10th Grade
88 questions
Unit 4: Variables, Conditionals, & Functions (APCSP '23-'24)

Quiz
•
9th - 12th 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
Discover more resources for Computers
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
37 questions
Camp Re-cap Week 1 (no regression)

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

Quiz
•
10th Grade