Javascript

JavaScript Concepts Everyone Should Learn!

Spread operator

let data = {
username:"GauravJ",
email:"[email protected]",
favLang: "JavaScript"
}

let data_updated = {...data, favLang:"Java"};

console.log(data_updated);

 

Destructuring

let data = {
username:"GauravJ",
email:"[email protected]",
favLang: "JavaScript"
}

let {username,email,favLang} = data; //Destructuring

 

Async js

Promises and callback

Async-await

Map filter and reduce

Map

Filter

Reduce

Triple equality

Leave a Reply

Your email address will not be published. Required fields are marked *