Hello folks,
ES6, pretty much hyped topic these days in front-end world.
So, how about learning some cool features of ES6 and Beyond (like, ES7, ES...
For further actions, you may consider blocking this person and/or reporting abuse
Good article and good uses cases for pad.
May I suggest a clearer example for
let. While your example is correct, I think this really drives block scope context home:Also, regarding
const(which is also blocked scoped),It should be noted that this only applies to the value assignment. Nested values are still mutable:
however, the value of a
constcannot be changed:Thank you.
I do agree with your examples above. Thanks for providing the same.
I did want to cover mutation and more in depth but on the other hand, I just wanted to keep things simple.
Fair enough. It can be hard to keep things simple yet cover all the foundations :)
Thank you.
String interpolation also called template literals right?
And you can use expressions in the literals like:
${ var_1 + var_2 }Yes, and the example given by you works well. Just make sure to use backtick :)