
JavaScript Essentials Quiz
Authored by Ebinbin Ajagun
Computers
Professional Development
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
16 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Which of these is not correct about variables?
Variables are fundamental to programming
Variables give names to data
Variables are containers used to store data or data values
Variables are the data types used in JavaScript
2.
MULTIPLE CHOICE QUESTION
20 sec • 2 pts
Which of these is not a primitive data type?
String
Number
Array
Undefined
3.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
What data type is the following variable?
const PI = 3.14;
String
Constant
Number
Bigint
4.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
What data type is the following variable?
c = 85;
Constant
String
Number
Boolean
5.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Which one is generally better for an unknown variable, line 1 or line 2?
let empty1 = undefined; //line 1
let empty2 = null; //line 2
Line 1
Line 2
6.
MULTIPLE CHOICE QUESTION
20 sec • 2 pts
What is the console output for the following code?
let greetStr1 = "Hello";
greetStr1 = "World";
console.log(greetStr1);
Hello
World
HelloWorld
Hello World
7.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
What will be logged to the console?
let x = "World!";
let y = "Hello $(x)";
console.log(y);
Hello
World
Hello World!
HelloWorld
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 Microsoft
or continue with
%20(1).png)
Apple
Others
Already have an account?