GGambitinjavascriptfromscratch.hashnode.dev00JS - Loops and Higher Order function6d ago · 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 - Functions6d ago · 7 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
GGambitinjavascriptfromscratch.hashnode.dev00Js - Objects6d ago · 8 min read · When you make an object with a constructor it is by default not a singleton object, if you make one with literal it is mostly. (theory) Declaring Object literal const User = { name: 'gambit', Join discussion
GGambitinjavascriptfromscratch.hashnode.dev00JS - Arrays6d ago · 7 min read · Declaration and Initialization const myArr = new Array(1, 2, 3, 4, 5, true,"gambit") or const myArr = [1, 2, 3, 4, 5, true,"gambit"] Pointer: Array is an object that has a collection of multiple itemJoin discussion
GGambitinjavascriptfromscratch.hashnode.dev00JS - Strings6d ago · 3 min read · Basic Declaration and initialization const name = "gambit" const repoCount = 10 console.log('Hello my name is '+name+' and my repo count is '+repoCount); Output Hello my name is gambit and my repo cJoin discussion