Skip to main content

EcmaScript 6 Startup tutorials

LET Keyword

The let keyword declares a local variable in the block scope. Normally ifstatements don’t have scope, but now they do with let.
This also works for loops too.
for Example : 
var x = 1;
if(x < 10) {
let v = 1;
v = v + 21;

console.log(v);
}
console.log(v); //v is not defined


CONST keyword

const or a constant declaration is where once, the variable is set you can’t change it. It’s read-only.

For example : 
  const admin = "jain";
   admin = "pardeep" //not allowed...readonly




Comments

Popular posts from this blog

Reflection of Google Chrome Apps/Extension's

As we all know everyone is lazy to do anything, everyone wants to complete his task with minimum number of efforts. Accordingly, technology is also changing day by day. From Websites to Mobile Apps to articles and now Chrome Extensions is in demand for now because of this you don't need to keep on checking website everytime for changes or something like this, also there are many chrome apps amazing functionalities which website doesn't provide so in the article we list down some cool Chrome extensions here. Message Saver For Facebook Message saver for Facebook is chrome extension which helps us to backup our FACEBOOK CHAT in .HTML format. try this out this is awesome app here. Get this app here... Wappalyzer Wappalyzer is a cross-platform utility that uncovers the technologies used on websites. It detects content management systems, ecommerce platforms, web frameworks, server software, analytics tools and many more. Get this app here... Click an...

Some New You Tube Facts come Tricks

Some New You Tube Facts come Tricks 1. Want to Download MUSIC  O nly from the You Tube Video you love ?     Simply Copy URL of the you tube video and go to website youtube-mp3.org enter the URL Copied and press convert and its DONE !!! 2. get tired of ad's in the you tube ?    Simply change the youtube to youtubeskip in the URL of any video. Stay in Touch for more Updates !!