JavaScript
Quiz
•
English
•
University
•
Hard
Sarah Williams
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
National Latin Exam
Quiz
•
4th Grade - University
15 questions
Elements of a Script
Quiz
•
5th Grade - University
15 questions
Script Writing
Quiz
•
11th Grade - University
10 questions
Own it 2 unit 1 p.14
Quiz
•
University
15 questions
Elements of a Script
Quiz
•
5th Grade - University
15 questions
Theatre Vocabulary
Quiz
•
6th Grade - University
15 questions
Week 12 - Business Information Systems - CRM
Quiz
•
University
20 questions
Lets revise!!!
Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games
Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines
Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22
Lesson
•
9th - 12th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
15 questions
Subtracting Integers
Quiz
•
7th Grade
20 questions
US Constitution Quiz
Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
