Just leveled up in JS! 🚀
setTimeout pitfalls (var vs let loops), first-class functions, and function expressions.
Irony is functions are just values in JavaScript.
So assigned to variables, invoked from other functions. That's when it clicked.
Thinking in functions now > 🧠
The uttermost reason to use @ChatGPTapp alongside your learning platform is that chatgpt introduces you to every other trap, additional doubts, and infinite question you haven't thought of.
Learning closures with SetTimeout.
Been inactive since month.
Today I'm back to restart my web-dev journey - sharing the blog about JavaScript closures.
If you too struggled Closures, this might help.
Read closures👇
https://t.co/cbZkeOcirF
Built the clone of Linear website from scratch.
It took a long time but was worth working on it.
Learnt many new CSS tips, used Semantic elements to design the layout.
#BuildingInPublic#CSS#FrontEndDeveloper#WebDevelopment
JS Journey: Day 21
Topic: Block chain & TDZ
Understood the TDZ and internal working of hoisting of let/const.
TDZ=code order
Got to know logic behind Reference, Syntax, and Type error.
Specially worked with let/const variable, their behavior when redlecared within same scope.
JS Journey: Day 20
Topic: Scope chain and Lexical environment in JS
Resolved the variables and functions with linked list of scopes.
Scope = code structure = lexical environment.
Solved the programs/closures with reference to lexical environment
Reference creates scope chain.