
JS Quiz Full

Quiz
•
Computers
•
12th Grade
•
Medium
Raja SK
Used 13+ times
FREE Resource
13 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the correct way to declare a variable in JavaScript?
Using the 'function' keyword followed by the variable name
Using the 'if' keyword followed by the variable name
Using the 'let', 'const', or 'var' keyword followed by the variable name
Using the 'print' keyword followed by the variable name
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you write a single line comment in JavaScript?
#
/*
//
${}
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
map() will always return an array
True
False
neither True nor False
Both True and False
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Choose the option which is not an array method
push()
splice()
pop()
None of the above
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you add a new element (5) to an existing array in JavaScript?
array.insert(5)
array.append(5)
array.add(5)
array.push(5)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
let arr = [1,2,3,4]
Find the number of elements in arr
arr.length()
arr.length
length = arr
length(arr)
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you access a property of an object in JavaScript?
By using dot notation or bracket notation
By using arrow notation
By using semicolon notation
By using comma notation
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
C Programming - Dia Aberto - EPC

Quiz
•
9th - 12th Grade
17 questions
JS Practice

Quiz
•
12th Grade
15 questions
Kuizi 14 - Web

Quiz
•
10th Grade - University
17 questions
AP CS ArrayLists

Quiz
•
12th Grade
18 questions
Data Structures Quiz 1

Quiz
•
12th Grade - University
10 questions
Advanced Java Study Guide

Quiz
•
11th - 12th Grade
10 questions
Windows Server Administration Fundamentals (1-10)

Quiz
•
12th Grade
15 questions
Unit 8 - Searching and Sorting

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade