0% found this document useful (0 votes)
31 views3 pages

Javascript Interview: Questions

The document provides an overview of JavaScript, describing it as a high-level, interpreted language for creating interactive web content. It outlines the supported data types, including both primitive and non-primitive types, and explains the differences between 'let', 'const', and 'var' in terms of scope and redeclaration. Additionally, it clarifies the distinction between '==' and '===' in terms of equality checking and type coercion.

Uploaded by

roshanchandel066
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)
31 views3 pages

Javascript Interview: Questions

The document provides an overview of JavaScript, describing it as a high-level, interpreted language for creating interactive web content. It outlines the supported data types, including both primitive and non-primitive types, and explains the differences between 'let', 'const', and 'var' in terms of scope and redeclaration. Additionally, it clarifies the distinction between '==' and '===' in terms of equality checking and type coercion.

Uploaded by

roshanchandel066
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

1/18

JAVASCRIPT
INTERVIEW
QUESTIONS
1. What is JavaScript?

JavaScript is a high-level, interpreted programming language


used to create interactive and dynamic web content. It is a
versatile, lightweight, and event-driven language that can run
on both the client and server sides.

2. What are the data types supported by JavaScript?

JavaScript supports the following data types:


Primitive Types: String, Number, BigInt, Boolean,
Undefined, Null, Symbol.
Non-Primitive Types: Object (including arrays, functions).
3. What is the difference between let, const, and var?

var: Function-scoped, allows redeclaration, hoisted with


undefined.
let: Block-scoped, no redeclaration, hoisted but not
initialized.
const: Block-scoped, no redeclaration, and must be
initialized during declaration.

4. Explain how == and === differ.

== checks for value equality with type coercion.


=== checks for strict equality without type coercion

You might also like