Skip to main content

Posts

ES6 NamedExport/default Export

Recent posts

ES6 Lesson1->Let and Const

Let and Const In javaSctipt earlier we were using var which is a functional or global scope. Now in Es6 We have new way to assign variable which are let and const which are block scop or local scope. Let Variable: Let is a block scope varibale whose value can be changed. Const Variable:Const is a block scoper variable whose value can not changed What is function/global scope and block scope? Function scope work on the entire code whereas block level code works inside only a perticular block in which the variable is written. Because of this the error will be less as we can use the same variable multiple times and assign new value without disturbing the earlier ones. For Expample in this function scope code we will see the how var works var name = "shivam"; if(name.typeof= string){ var name = "Neha"; console.log("i am"+ name);

ES Introduction

  Introduction TO ECMAScript 2015/ES6. javaSctipt Was created in 1996. it was calles lifescript as it turns the webpage alive. later on in 1997 the javaSctipy was submites to ECMA international or standarlization which resulted in ECMAScript. in 2015 ES6 launched which become famous. ES6 topics Let & Const Template String Arrow Function DeStructuring Object Props Default Arguments Array in ES6 New Number Method New Global Method