0% found this document useful (0 votes)
3 views1 page

JavaScript Interview Questions

The document outlines key JavaScript interview questions and answers. It explains closures as functions that remember their lexical scope, hoisting as the process where declarations are moved to the top, and the difference between == and === in terms of value and type checking. These concepts are essential for understanding JavaScript behavior and functionality.

Uploaded by

ayaan2103
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)
3 views1 page

JavaScript Interview Questions

The document outlines key JavaScript interview questions and answers. It explains closures as functions that remember their lexical scope, hoisting as the process where declarations are moved to the top, and the difference between == and === in terms of value and type checking. These concepts are essential for understanding JavaScript behavior and functionality.

Uploaded by

ayaan2103
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

JavaScript Interview Questions

What is Closure?

• A function that remembers its lexical scope.

• Used in data privacy and currying.

What is Hoisting?

• Variable and function declarations are moved to the top.

• let and const are hoisted but not initialized.

Difference between == and ===

• == checks value only.

• === checks value and type.

You might also like