
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
QBASIC Programming
Quiz
•
5th - 10th Grade
10 questions
DBMS Quiz 3
Quiz
•
1st - 10th Grade
10 questions
สอบเก็บคะแนน การเขียนโปรแกรมด้วยภาษา Python
Quiz
•
8th Grade
10 questions
Lesson 4 - Rise of the bots
Quiz
•
6th - 8th Grade
13 questions
Software - Unit 1 Digital Technology
Quiz
•
4th - 10th Grade
15 questions
Microbit (python)
Quiz
•
8th - 10th Grade
13 questions
Principles of Programming
Quiz
•
KG - University
12 questions
Python
Quiz
•
7th - 9th Grade
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
