ECMAScript 6 / ES6 New Features - Tutorial 1 - Let

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

Back in 2012 I was in college and you really helped me with your c++ tutorials... And today I am working very well in company ....Thank you Bucky

navjotsingh
Автор

Back in 2013 I was a dropout with no hope, I learned PHP from your channel and worked with many companies and all I can say that you helped me more than anyone else.

KrishnaDasPC
Автор

WoW! This summer I am trying to learn EVERYTHING about JS and you come with this course! PERFECT! :D

_pi
Автор

follow Bucky tuts since tutorial C programming... very glad meet you again... :D

afif
Автор

Hey thumb this up if you're watching in 2018!

ProgramWithErik
Автор

I really appreciate your tutorials. Thank you for being clear and concise.

BlvkIsMyVibe
Автор

very helpfull bucky's tuts never disapoint

amirmekk
Автор

ah yes i was waiting for this!
i already use es6 but this series will be good!

mroos
Автор

I love the mechanical keyboard dude :))

tureburegurambure
Автор

I tried replacing the let with var, and outputs are different.

Cool! Thanks Bucky!

angelbein
Автор

The 1st 6 minutes, you are explaining js function scope which applies to both var and let variables. It's worth noting the difference between var and let. Only let has block scope.

trappedcat
Автор

Hey man, are you okay? Health, wealth, etc? We want new courses!!! haha Love your teaching style. Any new courses in the works? Thanks!

TheNotoriousJS
Автор

You should probably have mentioned why you're including 'use strict' at the top of your file since that's necessary.

vidsquid
Автор

Just remember one thing. The following will trigger the error: d is undefined
block(true);
function block(is_true){
let d = "Kal";
if(is_true){
/****
* this triggers the error: ReferenceError: d is not defined, even though d is defined
* inside the function. This means, IF creates its own scope
*/
console.log(d);

let d = "Mal";
console.log(d);
}
console.log("out of IF and inside block()");
console.log(d);
}
This is because :
Once we define d inside IF block, Javascript will not use the d from outer scope. It is not
the case that before the line let d = "Mal"; JS will use d from the outer scope and
after the line JS will use d from IF block

subhroghosh
Автор

The same thing applies for var regarding the local scoping and the global scoping

costaszeimpekis
Автор

I love The Notebook and I don't care who knows it.

natasx
Автор

Showing the difference in what would happen if you used 'var' instead would have been helpful in understanding 'let'

wisdomgoddessmom
Автор

Very informative, but please get a better microphone to filter out your keyboard sound. It get's rather annoying after a while, especially when bottoming out mechanical keys.

soyent
Автор

Thank you so much. Question for you please. What IDE are you using?

shawnmofid
Автор

You should've realized that almost everyone watching this tutorial already knows the most fundamental programming concepts like scope, and all basic javascript syntax as well.

You shouldn't waste time on that, and instead just quickly go through all of the new features and the reasons for their implementation in ES6.

xXxBladeStormxXx