What will be logged? console.log(typeof null);

JavaScript and React Quiz

Quiz
•
Professional Development
•
University
•
Medium
Karnam Bharath
Used 2+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
"null"
"undefined"
"object"
"string"
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the primary purpose of useState in React?
To create static variables
To manage state in functional components
To modify the DOM directly
To fetch data from APIs
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which HTTP method is commonly used for updating existing data in REST APIs?
GET
POST
PUT
DELETE
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does fetch() return in JavaScript?
A resolved value
A callback function
A Promise
An XML object
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you create a class in JavaScript?
function MyClass() {}
class MyClass {}
new class MyClass {}
MyClass() => {}
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these is a pure function?
A function that modifies global variables
A function that always returns the same output for the same input
A function that depends on Math.random()
A function that performs AJAX requests
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the default return value of a JavaScript function if no return statement is provided?
null
undefined
0
""
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
JavaScript and React Quiz

Quiz
•
University
25 questions
#100 Devs - LwL - class 15

Quiz
•
10th Grade - Professi...
20 questions
Quiz Js

Quiz
•
University
15 questions
Arduino/Node MCU

Quiz
•
University
15 questions
ICAEW CFAB ACCOUNTING (AG) - ch. 6

Quiz
•
University
16 questions
New DRAFT

Quiz
•
University
16 questions
June Desk Social 23

Quiz
•
University
15 questions
JavaScript Basics

Quiz
•
12th Grade - University
Popular Resources on Wayground
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice

Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers

Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons

Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade