
Fundamentals of JavaScript

Quiz
•
Others
•
University
•
Hard
Deepthi Surendran
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct syntax to declare a variable in JavaScript?
let x = 5;
let x == 5;
var x = 5;
const x : 5;
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a JavaScript data type?
boolean
integer
string
undefined
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does 'NaN' stand for in JavaScript?
Number-Not-Available
Not-a-Name
Null-Value
Not-a-Number
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you create a function in JavaScript?
function:myFunction() { // function body }
function myFunction: { // function body }
function myFunction() { // function body } or const myFunction = () => { // function body }
myFunction() => { // function body }
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the 'this' keyword in JavaScript?
The 'this' keyword is used to refer to the current execution context or object.
The 'this' keyword is used to create new objects in JavaScript.
The 'this' keyword is a function that returns the current date.
The 'this' keyword is used to declare variables in JavaScript.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you add a comment in JavaScript?
Use // for single-line comments and /* comment */ for multi-line comments.
Use # for comments
Use for comments
Use // for multi-line comments only
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the difference between '==' and '===' in JavaScript?
The difference is that '==' performs type coercion while '===' does not.
Both '==' and '===' perform type coercion.
'==' checks for strict equality while '===' checks for loose equality.
'==' and '===' are interchangeable operators.
Create a free account and access millions of resources
Similar Resources on Wayground
13 questions
Веб-графиканы оңтайландыру бойынша тест

Quiz
•
University
12 questions
Cranial Nerve Function and Test

Quiz
•
University
10 questions
Linear Optimization Quiz

Quiz
•
University
15 questions
Computer Systems Quiz

Quiz
•
University
8 questions
Introduction To Tableau

Quiz
•
University
10 questions
Phylum Arthropoda to Protochordates

Quiz
•
University
8 questions
hehe

Quiz
•
University
10 questions
Exploring Android Architecture

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Others
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University