
JavaScript Quiz

Quiz
•
Information Technology (IT)
•
University
•
Medium
Abhishek Swami
Used 4+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the main difference between let and const?
let is block-scoped, const is global-scoped
let can be reassigned, const cannot
let creates immutable variables, const creates mutable ones
let is function-scoped, const is block-scoped
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which method is used to make HTTP requests with Axios?
axios.get()
axios.fetch()
axios.request()
axios.http()
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will this code output? console.log(typeof null);
"null"
"object"
"undefined"
"string"
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which function is an example of a recursive function?
function countdown(num) {
if (num <= 0) return;
console.log(num);
countdown(num - 1);
}
Yes
No
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following is NOT a valid HTTP method?
PATCH
FETCH
PUT
DELETE
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the purpose of JSON.parse()?
Converts an object to a string
Parses a string into a JSON object
Fetches data from an API
Validates JSON syntax
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is a higher-order function?
A function that only works with arrays
A function that returns an object
A function that takes another function as an argument or returns a function
A function that executes immediately
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Google Sheets Quiz 30/09/2024

Quiz
•
University
15 questions
Codean - JavaScript Variablel & Function

Quiz
•
University
17 questions
Quiz Data Consumption React

Quiz
•
University
15 questions
Mastering Express JS Concepts

Quiz
•
12th Grade - University
15 questions
PHP File and Database Management Quiz

Quiz
•
University
25 questions
Fundamentals of programming Quiz

Quiz
•
University
20 questions
Web Development Quiz

Quiz
•
University
19 questions
Web Development Quiz

Quiz
•
University
Popular Resources on Wayground
55 questions
CHS Student Handbook 25-26

Quiz
•
9th Grade
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
10 questions
Chaffey

Quiz
•
9th - 12th Grade
15 questions
PRIDE

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
22 questions
6-8 Digital Citizenship Review

Quiz
•
6th - 8th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade