0% found this document useful (0 votes)
33 views

JavaScript Interview

Uploaded by

Subham Mukherjee
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
33 views

JavaScript Interview

Uploaded by

Subham Mukherjee
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 11

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 monkcodesdev@gmail.com linkedin.com/in/dxpratikk

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy