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

JavaScript Quick Revision Hindi

This document provides a quick revision of JavaScript concepts, including definitions and differences between key elements like var, let, and const, as well as comparisons between == and ===. It explains the distinctions between null and undefined, and details the functionality of array methods such as map(), filter(), and reduce(). Additionally, it covers string methods like slice() and substring() with examples.

Uploaded by

saisasale03
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)
2 views1 page

JavaScript Quick Revision Hindi

This document provides a quick revision of JavaScript concepts, including definitions and differences between key elements like var, let, and const, as well as comparisons between == and ===. It explains the distinctions between null and undefined, and details the functionality of array methods such as map(), filter(), and reduce(). Additionally, it covers string methods like slice() and substring() with examples.

Uploaded by

saisasale03
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 Quick Revision (100 Interview

Questions in Hindi + Examples)

■ JavaScript kya hota hai?


■ JavaScript ek scripting language hai jo web pages ko dynamic aur interactive banati hai.
[Link]('Hello JavaScript');

■ var, let, aur const me kya difference hai?


■ var function scoped hota hai, let aur const block scoped hote hain. const ki value dobara assign
nahi ki ja sakti.
var a = 10; let b = 20; const c = 30;

■ == aur === me kya difference hai?


■ == type conversion karke values compare karta hai, jabki === strict comparison karta hai (type +
value dono check).
[Link](2 == '2'); // true [Link](2 === '2'); // false

■ null aur undefined me kya farak hai?


■ null ek intentional empty value hoti hai, jabki undefined ka matlab hai value assign nahi hui.
let a; [Link](a); // undefined let b = null; [Link](b); // null

■ Array me map(), filter(), reduce() ka use kya hai?


■ map() har element par function chala kar naya array banata hai, filter() condition wale elements
return karta hai, aur reduce() ek single value return karta hai.
let arr = [1,2,3,4]; [Link]([Link](x => x*2)); // [2,4,6,8]
[Link]([Link](x => x%2===0)); // [2,4]
[Link]([Link]((a,b)=>a+b,0)); // 10

■ String methods jaise slice(), substring(), substr() ka use?


■ slice() aur substring() string ka hissa nikalne ke liye use hote hain. substr() deprecated hai.
let str = 'JavaScript'; [Link]([Link](0,4)); // Java
[Link]([Link](4,10)); // Script

You might also like