
JavaScript Fundamentals
Authored by Hana Morsi
Computers
8th Grade
Used 4+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What keyword is used to declare a variable in JavaScript?
var
const
let
function
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are the primitive data types in JavaScript?
string, number, boolean, null, undefined, symbol
integer
array
object
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the operator used for assigning a value to a variable in JavaScript?
=
+
*
/
4.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
How do you define a function in JavaScript?
function functionName(parameters) { // function body }
function functionName(parameters) { // code here }
function functionName(parameters) { // implementation }
function functionName(parameters) { // function body }
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What keyword is used for creating conditional statements in JavaScript?
if
switch
else
for
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which loop is used when you want to execute a block of code a specific number of times in JavaScript?
for
switch
while
if
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are the different data structures available in JavaScript?
trees
graphs
arrays, objects, sets, maps, stacks, queues, linked lists
heaps
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?