SNSuraj Negiinnegi.hashnode.dev·Jun 30, 2021 · 3 min readDifferent ways to Create functions in JavascriptToday, we will learn different ways to create functions in Javascript. Before starting, a reminder about what is a function: A Function is a block of statements that is designed to perform a particular task. //defining a function function test(){ ...00
SNSuraj Negiinnegi.hashnode.dev·Jun 29, 2021 · 3 min readLet and Const in JavaScriptLet's learn about let and const variables Before ES6, the only way you can create a variable in javascript was by using the var keyword: var x = 10; Since ES6, there are two new keywords, let and const. Below is an example to show their usage: let...00