โฌ๏ธ Quick JS reference for beginners:
1) let / const / var โ Declare variables
2) typeof โ Check variable type
3) if / else / else if โ Conditional logic
4) for / while / do-while โ Loops
5) function() โ Declare a function
6) Arrow Functions (=>) โ Shorter function syntax
7) Array Methods:
โข
push(), pop() โ Add/remove from endโข
shift(), unshift() โ Add/remove from startโข
map(), filter(), reduce() โ Looping & data transformation8) String Methods:
โข
length, toUpperCase(), includes(), split()9) Objects โ Key-value data structures
const user = { name: "John", age: 25 };10) JSON โ Convert between objects & strings
JSON.stringify(obj), JSON.parse(string)11) DOM Manipulation
document.getElementById("id").innerText = "Hello";12) Events โ Handle user actions
button.addEventListener("click", function() {...});13) setTimeout / setInterval โ Run code later or repeatedly
14) Promises & async/await โ Handle asynchronous code
15) Fetch API โ Get data from APIs
fetch(url).then(res => res.json()).then(data => ...)๐ Tap โค๏ธ for more!