View profile

πŸ“¬ Weekly CodeOz #Webdev - Free programming ebook - Issue #12

πŸ“¬ CodeOz's Letters ! πŸ’»
Programming ebook will help you to go deep into a language, framework etc…
I will share with you some FREE programming ebook that can help you to upgrade your skills!
Underrated skills in javascript, make the difference.
You-Dont-Know-JS/get-started at 2nd-ed Β· getify/You-Dont-Know-JS Β· GitHub
You-Dont-Know-JS/scope-closures at 2nd-ed Β· getify/You-Dont-Know-JS Β· GitHub
JavaScript Interview #35
30 Days of Vue -- newline
?Quizz of the week
Answer + explication πŸ‘‡
Answer: B
ο»ΏWhen you declare variable with let, the scope is block scoped, so when we declare first variable in the if block, the console log will show the first variable declare in this scoped first.
When we go out of this block, and we show another the first variable value, we will show the value in this scope, here it’s the global scope (β€œHow are you ?”)
When we declare a variable in the block if, and we try to access to it in outer scope (here global scope), the variable is not existing anymore, so we will have ReferenceError since we declare it into if block
Did you enjoy this issue? Yes No

I'm sharing with you some articles & resources about web development! πŸ’»

🎁 Subscribe for FREE to get a Javascript Chealist!

Each week we will talk about a subject related to web development (javascript, typescript, vuejs, html, css and others!) πŸ“š

And I will add more bonuses like free courses recommendation or cheatlist 🎁

Check my latest article πŸ‘‡

In order to unsubscribe, click here.
If you were forwarded this newsletter and you like it, you can subscribe here.
Created with Revue by Twitter.