
JavaScript Basic 1
Quiz
•
Computers
•
8th Grade
•
Practice Problem
•
Medium
Lan Le
Used 1+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What keyword is used to declare a variable in JavaScript?
let
function
name
variable
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you define a function in JavaScript?
functionName(parameters) { // code here }
functionName(parameters) // function body
function functionName(parameters) { // function body }
functionName(parameters) { // function body }
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which keyword is used for creating conditional statements in JavaScript?
switch
loop
function
if
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you access the elements of an array in JavaScript?
arr[index]
arr.index
arr{index}
arr[element]
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In JavaScript, what data type is used to store multiple values in a single variable?
boolean
number
array
string
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you create an object in JavaScript?
obj = [key: value];
variable obj = new Object();
createObject();
let obj = { key: value };
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of the expression 5 === '5' in JavaScript?
false
undefined
5
true
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
Ms Excel - Grade 8
Quiz
•
8th Grade
11 questions
Website
Quiz
•
8th - 9th Grade
15 questions
Coding Quiz
Quiz
•
6th - 10th Grade
13 questions
Key Functions
Quiz
•
8th - 9th Grade
10 questions
Python with DataScience
Quiz
•
7th Grade - University
10 questions
Python
Quiz
•
8th Grade
14 questions
CodeHS - Java - Karel - Sec1-4
Quiz
•
8th - 10th Grade
10 questions
Advanced SQL
Quiz
•
KG - 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
