GGambitinjavascriptfromscratch.hashnode.dev·May 31 · 10 min readJS - 3 simple DOM projects with writeup and key conceptsP01 : Counter App Problem statement : make a simple counter app, where you click an 'increment' button and a counter counts up from 0. If you press the 'save' button counter resets to 0 again but the 00
GGambitinjavascriptfromscratch.hashnode.dev·May 31 · 2 min readJS - Date ObjectObjects that contain values that represent dates and times, these date objects can be formatted and changed. const date1 = new Date() console.log(date1) // 2026-04-13T01:40:46.976Z This gives me cur00
GGambitinjavascriptfromscratch.hashnode.dev·May 31 · 3 min readJs - Maps and setSet It's just like arrays but contains only unique values (you can store anything numbers, strings, arrays, objects,.. as items inside it) let arr = [1,2,2,3,3,3] let s = new Set(arr) console.log(00
GGambitinjavascriptfromscratch.hashnode.dev·Apr 2 · 11 min readJS - Loops and Higher Order functionloops are helpful when we want to execute the same code a lot of times. for loop Here below is a example of printing 1 to 10 for(let i = 1; i <= 5; i++){ console.log(i) } Output 1 2 3 4 5 Pointe00
GGambitinjavascriptfromscratch.hashnode.dev·Apr 2 · 8 min readJs - FunctionsSimple function declaration Let's make a simple function that console logs "Hello" whenever called. function sayHello(){ console.log("Hello") } console.log(sayHello) // [Function: sayHello] sa00