[Go to site: main page, start]

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

JavaScript Notes: Beginner to Intermediate

Uploaded by

aq444099
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)
7 views3 pages

JavaScript Notes: Beginner to Intermediate

Uploaded by

aq444099
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 Complete Notes (Urdu)

Beginner se Intermediate + DOM + Async + OOP

1) JSON Handling
● JSON ka matlab JavaScript Object Notation hai.
● API data aksar JSON format mein hota hai.
● [Link]() string ko object mein badalta hai.
● [Link]() object ko string mein badalta hai.

2) Dates & Time


● Date object date aur time ke liye use hota hai.
● new Date() current date/time deta hai.
● getFullYear(), getMonth(), getDate() common methods hain.

3) setTimeout & setInterval


● setTimeout() delay ke baad code chalata hai.
● setInterval() har interval par code repeat karta hai.
● clearTimeout() aur clearInterval() se stop kiya jata hai.

4) Modern JavaScript (ES6+)


● Template Strings backticks (`) use karti hain.
● Arrow Functions short syntax provide karti hain.
● Default Parameters function arguments ke defaults set karti hain.
● Spread (...) copy/merge ke liye aur Rest (...) remaining values ke liye.

5) Destructuring
● Array Destructuring se values directly variables mein jati hain.
● Object Destructuring properties ko extract karti hai.
● Nested aur Function Destructuring advanced use cases hain.

6) Conditional & Loops


● Ternary Operator short if-else hota hai.
● for-in objects ke keys ke liye hota hai.
● for-of arrays/iterables ke values ke liye hota hai.
7) Array Helper Methods
● forEach() har item par loop chalata hai.
● map() new array return karta hai.
● filter() condition ke mutabiq items rakhta hai.
● find() pehla matching element deta hai.
● every/some condition check karte hain.
● reduce() array ko single value mein convert karta hai.

8) Data Structures
● Map key-value pairs ko store karta hai.
● Set unique values rakhta hai.
● Symbols unique identifiers hote hain.

9) DOM (Document Object Model)


● DOM HTML ko JavaScript se control karne deta hai.
● Elements access: getElementById, querySelector.
● Text, classes, attributes aur styles modify kiye jate hain.
● Events user interaction handle karte hain.

10) Async JavaScript


● Callback Hell nested callbacks ka issue hai.
● Promises async code ko readable banati hain.
● async/await promises ko simple banata hai.
● Fetch API se server se data mangwaya jata hai.
● Error handling try/catch se hoti hai.

11) OOP (Object Oriented Programming)


● this keyword current object ko refer karta hai.
● Factory aur Constructor functions objects banate hain.
● Classes modern syntax provide karti hain.
● Encapsulation, Inheritance, Polymorphism core concepts hain.

12) Job Ready Tips


● Array methods aur DOM par strong grip banao.
● 2-3 small projects banao.
● Async/Await aur Fetch zaroor seekho.
● Code roz likho, sirf dekho nahi.

You might also like