LRLoveKush Rajputinlovekush.hashnode.dev·Jan 24, 2022 · 2 min readArraysAn array is a special variable, which can hold more than one value array are special type of object typeof array "object" it contain ordered list of values keys are indexed (starts from 0..) Use square bracket [] because key is number Creating an ...00
LRLoveKush Rajputinlovekush.hashnode.dev·Jan 24, 2022 · 2 min readObjectsAn object is an collection value and key pair. Creating Objects we use curley brackets {} or object literal to create object. ex-let user = { name: "John", age: 18 isAdult: true } Different Operations perform in objects Accessing a value Adding...00
LRLoveKush Rajputinlovekush.hashnode.dev·Jan 23, 2022 · 2 min readDifferent Types of FunctionFunction Declaration Function Expression Anonymous Function Expression Arrow function Function Declaration When a function is starting with keyword function that kind of function is known as function declration. ex- function add(a,b){ return a+b } a...00
LRLoveKush Rajputinlovekush.hashnode.dev·Jan 23, 2022 · 3 min readFunctionsFunctions are a way to store series of steps that we do to perform certain actions. How to create a function Function(The keyword that create a box) addTwoNumber(Name of the Created box) Curley Brackets ( {} ) So whatever inside curley brackets is...00
LRLoveKush Rajputinlovekush.hashnode.dev·Jan 23, 2022 · 2 min readRepeating Actions with LoopsSometimes In our program we want to repeat some action multiple times. for-ex I want to console.log("Hello world") 4 times. The hard way to do that would be to wrote code again and again. this code works but the idea of programming is to make thing...00