GGambitinjavascriptfromscratch.hashnode.dev00JS - 3 simple DOM projects with writeup and key conceptsMay 31 · 10 min read · P01 : 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 Join discussion
GGambitinjavascriptfromscratch.hashnode.dev00JS - Date ObjectMay 31 · 2 min read · Objects 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 curJoin discussion
GGambitinjavascriptfromscratch.hashnode.dev00Js - Maps and setMay 31 · 3 min read · Set 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(Join discussion
GGambitinjavascriptfromscratch.hashnode.dev00JS - Loops and Higher Order functionApr 2 · 11 min read · loops 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 PointeJoin discussion
GGambitinjavascriptfromscratch.hashnode.dev00Js - FunctionsApr 2 · 8 min read · Simple function declaration Let's make a simple function that console logs "Hello" whenever called. function sayHello(){ console.log("Hello") } console.log(sayHello) // [Function: sayHello] saJoin discussion