JavaScript Interview
Preparation in 10 Days
What is the difference between
var, let, and const?
var has function scope, while let and const have block
scope. const is for constants that cannot be reassigned
REACT | NEXT JS | FRONTEND
DEVELOPER
MONK CODES
What is a closure in JavaScript?
A closure is a function that has access to its outer function’s
scope even after the outer function has returned
REACT | NEXT JS | FRONTEND
DEVELOPER
MONK CODES
What is the arrow function syntax
in ES6?
Arrow functions provide a shorter syntax for writing
functions and do not have their own this context
REACT | NEXT JS | FRONTEND
DEVELOPER
MONK CODES
What is the spread operator and how is
it used?
The spread operator (...) allows an iterable to be expanded in
places where zero or more arguments or elements are expected
REACT | NEXT JS | FRONTEND
DEVELOPER
MONK CODES
What are template literals in ES6?
Template literals allow embedded expressions and multi-line
strings using backticks (`) instead of single or double quotes
REACT | NEXT JS | FRONTEND
DEVELOPER
MONK CODES
How do you create a default
parameter for a function in ES6?
Default parameters allow named parameters to be initialized
with default values if no value or undefined is passed
REACT | NEXT JS | FRONTEND
DEVELOPER
MONK CODES
What is destructuring in JavaScript?
Destructuring is a syntax for extracting values from
arrays or properties from objects into distinct variables
REACT | NEXT JS | FRONTEND
DEVELOPER
MONK CODES
What are classes in ES6?
Classes in ES6 are a blueprint for creating objects with
shared properties and methods.
REACT | NEXT JS | FRONTEND
DEVELOPER
MONK CODES
What are modules in ES6?
Modules allow you to export and import code between
different files, enabling better code organization and reuse
REACT | NEXT JS | FRONTEND
DEVELOPER
MONK CODES
Contact Us
Phone Number Email Website
+91-8961894629
[email protected] linkedin.com/in/dxpratikk