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 Facts about Twitter.

1. It Was Originally Called ‘Twttr’. 2. Now the current users send out a billion tweets every week. 3. The highest tweeter of all time goes to a Japanese girl, @Yougakduan_00.     This user has tweeted a mind boggling 36,402,262 posts — that’s one every         second, for 421 days! 4. On January 22nd, 2010, T.J. Creamer, a NASA astronaut posted a tweet from     the International Space Station.This became the first, un-assisted, off-Earth      Twitter message. 5. In March 2012, James Cameron made his way down to Marina Trench,     the deepest point of the known ocean, or as James Cameron likes to call it his     “chill zone”,and sent out a tweet. I wonder which network subscriber he uses. 6. Surprisingly enough, China has the highest number of twitter accounts     in the world with over 35 million people in the country using the medium. 7. Turkey became the l...