
JavaScript Core Concepts
Authored by saista shaikh
Computers
12th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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;
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
Keyboarding Terms
Quiz
•
9th - 12th Grade
10 questions
Topologies and Architecture
Quiz
•
9th - 12th Grade
10 questions
Tree
Quiz
•
12th Grade
15 questions
Code Combat Curso Junior
Quiz
•
9th - 12th Grade
10 questions
Ciência de Dados - Análise Probabilística de Algoritmos
Quiz
•
12th Grade
10 questions
PBO XII RPL
Quiz
•
9th - 12th Grade
13 questions
AI-1
Quiz
•
KG - University
14 questions
Computing figures
Quiz
•
4th - 12th 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