JavaScript
Quiz
•
English
•
University
•
Practice Problem
•
Hard
Sarah Williams
FREE Resource
Enhance your content in a minute
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 5 pts
To declare a JavaScript variable, you should NOT use?
Let
Var
Const
Int
2.
MULTIPLE CHOICE QUESTION
1 min • 5 pts
How do you write "Hello World" in an alert box?
msg("Hello World");
alertBox("Hello World");
alert("Hello World");
msgBox("Hello World");
3.
MULTIPLE CHOICE QUESTION
1 min • 5 pts
How can a developer show a pop-up message to the user?
alert
prompt
console.log
<p> tag
4.
MULTIPLE CHOICE QUESTION
1 min • 5 pts
How do I declare a new variable?
var newVariable = 5;
Variable int = new Variable();
var 5 = myVariable;
int var = 5;
5.
MULTIPLE CHOICE QUESTION
1 min • 5 pts
The following code will:
x++;
Add 1 to the previous value of x
Add 1 to the previous value of y
Subtract 1 from the previous value of x
Give an error message
6.
MULTIPLE SELECT QUESTION
1 min • 5 pts
Which of the following is a symbol that must NOT be present in any JS Variable? Choose two
A
z
~
%
7.
MULTIPLE CHOICE QUESTION
1 min • 5 pts
What would this piece of code display?
let x = 5;
console.log(x != 8);
false
x!=8
true
8
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
Grammar 1: past perfect and past perfect continuous
Quiz
•
University
10 questions
GEI - Vocab Quiz 2 Revision
Quiz
•
University
10 questions
RE Vocabulary 04 2024
Quiz
•
University
10 questions
Present Perfect and Present Perfect continuous
Quiz
•
University - Professi...
14 questions
revoir les notions
Quiz
•
University
10 questions
Superstitions
Quiz
•
University
13 questions
Paper 1 English AQA
Quiz
•
8th Grade - Professio...
16 questions
SpeakOut UI.UNIT 1.P.8
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
