
JavaScript Core Concepts

Quiz
•
Computers
•
12th Grade
•
Medium

saista shaikh
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are the different data types in JavaScript?
string, number, boolean, object, function, undefined, and symbol
apple, banana, orange, grape
cat, dog, bird, fish
red, blue, green, yellow
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Explain the difference between '==' and '===' operators in JavaScript.
=== checks for equality of value, while == checks for equality of value and type
== checks for equality of value and type, while === checks for equality of value
== and === are interchangeable and can be used interchangeably in JavaScript
== checks for equality of value, while === checks for equality of value and type
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are the different types of control structures in JavaScript?
try-catch statement, switch-case statement, do-until loop
if statement, switch statement, for loop, while loop, and do-while loop
if-else statement, repeat statement, for-each loop
while-do statement, if-else-if statement, for-in loop
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Explain the concept of function scope in JavaScript.
Variables declared inside a function are accessible globally
Variables declared inside a function are only accessible within that function.
Variables declared inside a function are accessible outside of the function
Function scope only applies to arrow functions
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you declare and initialize an array in JavaScript?
var arrayName = [];
arrayName = {}
arrayName = [1, 2, 3]
arrayName = new Array()
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of switch case in JavaScript?
To execute different code blocks based on different conditions.
To define the layout of a webpage
To calculate mathematical operations
To create loops in the code
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the syntax for declaring a variable in JavaScript?
var variableName;
variableName = new variable();
variableName = var;
variableName var;
Create a free account and access millions of resources
Similar Resources on Wayground
12 questions
HTML & CSS

Quiz
•
10th - 12th Grade
15 questions
Unity Interface Basics 101

Quiz
•
9th - 12th Grade
10 questions
Evaluasi dan Refleksi - 3

Quiz
•
12th Grade
15 questions
Examen Tema 4 Array, Funciones y Objetos JavaScript

Quiz
•
12th Grade
10 questions
JavaScript

Quiz
•
9th - 12th Grade
10 questions
JavaScript Quiz

Quiz
•
12th Grade
15 questions
AV1\R1 3TEC_BE_Acesso a Propriedades em JavaScript 1 a 16

Quiz
•
1st Grade - University
15 questions
Roblox Studio concept review

Quiz
•
1st - 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