Filter
Exclude
Time range
-
Near
Replying to @maybeshalinii
Great post here Shalini👍💯 On a related note, just wanna mention, that we should be careful about TDZ. 🚫 **Temporal Dead Zone (TDZ) and Error Behaviors**:🚫 So TDZ is about the basic differences among `var`, `let`, and `const` when it comes to hoisting. 👉 **Hoisting** is a JavaScript mechanism where variable and function declarations are moved to the top of their containing scope during the compilation phase. However, only the declarations are hoisted, not the initializations. When we say "`var` variables are hoisted", it means: If you declare a variable with `var` anywhere in a function or globally, its declaration is "lifted" to the top of the function or global scope. However, the actual value assignment remains in place. If you access the variable before its value assignment, it will return `undefined`. -------- NOT `var` variables are hoisted and initialized with `undefined`, while `let` and `const` are hoisted but not initialized. This uninitialized state is what's often referred to as the Temporal Dead Zone (TDZ). However, a lesser-known detail is how they each behave in terms of errors when accessed during their respective TDZs: 1. For `var`: - Since it's initialized with `undefined`, accessing a `var` variable before its declaration will not throw an error; instead, it will return `undefined`. 2. For `let`: - If you try to access a `let` variable before its declaration, JavaScript will throw a `ReferenceError` because it's in the TDZ and not yet initialized. 3. For `const`: - It behaves similarly to `let` in terms of the TDZ. Accessing a `const` before its declaration will throw a `ReferenceError`. However, there's another edge case to consider: If you declare a `const` variable but do not immediately initialize it, you'll receive a `SyntaxError`. This enforces the idea that constants must be initialized at the time of their declaration. Now, while many seasoned developers might be aware of the TDZ for `let` and `const`, the nuance of the different error types – `ReferenceError` vs. `SyntaxError` – for uninitiated `const` variables might catch some off guard. --------------------------- 🚀If you are preparing for JavaScript / React Interview - Check out my Github Repo (⭐It's got 2.7K Stars⭐🌠) - Will give you enough win🚀🔥 👉👉 github.com/rohan-paul/Awesom… #javascript #javascriptdeveloper #javascripts #javascript30 #learnjavascript #javascriptdevelopers #javascriptengineer #javascriptlover #javascripttutorial #javascripting #javascriptdev #javascriptlearning #javascriptframework #learningjavascript #javascript_love #vanillajavascript #javascriptislife #javascriptbasics #javascriptiskillingmysoul #javascriptbook #eloquentjavascript #javascriptlibraries #fullstackjavascript #javascriptcode #javascriptprogrammer #javascriptlovers #javascriptbootcamp #javascripters #javascriptcafe #javascriptforbabies #javascripttips #instajavascript #javascriptla #ilovejavascript #javascriptprogramming #javascript3 #javascriptjustice #javascriptninja #javascriptcoder #html #css
3
541
Props to all the JavaScript library creators who make our lives easier with their well-designed tools. #JavaScriptLibraries #TechGratitude
2
22
Here're 10 JavaScript libraries you can't afford to miss: #javascript #javascriptlibraries #programminglanguage #programming #coding
2
3
30
Here, we introduce you to the most beneficial top JavaScript frameworks and libraries that suit all kinds of your upcoming projects. Check out our latest blog to know more! bit.ly/3Kd87XI #JavaScript #frameworks #JavascriptLibraries #javascriptframeworks #BootstrapDash
1
2
138
5 Dec 2022
👨‍💻 Most #webapplication needs a #JavaScript #Datagrid library. Here is a list of the top JavaScript libraries that are essential while creating JavaScript tables for your online apps 👉 bit.ly/3UxL8s1 #Sencha #Javascriptlibraries #ExtJS #developers #programmers
1
3
23 Sep 2022
have you ever download a move on a free movie websites and you are being interrupted by bunch of popups ,spam sites and redirection? well your not the only one 🔗🔗GitHub link github.com/MaverickDe/Google… #javascript #javascripts #JavascriptLibraries #javascript30
140
77
Looking for career prospects after learning Javascript? Look no more. Follow @Beyondexams_ for more such cool videos and tweets! #beyondexams #javascript #javascripts #JavascriptLibraries
1
31 Jul 2022
Partytown is a small #JavaScript library that speeds up #WebApplication #loadtimes by helping #developers to move third party scripts into #WebWorkers and off the main thread. Read more about it on #InfoQ: bit.ly/3baTfdv @GuyNesher #JavascriptLibraries #WebDevelopment
1
2
JavaScript Libraries - The world of JavaScript Libraries { by @herbertkartel } from @hashnode #javascriptlibraries bayoherbert.hashnode.dev/jav…

1
2
Top JavaScript Animation Libraries (You Must Know 🤩 ) A Thread 🧵 ↓ . . . #javascript #js #javascriptlibraries #jstipsandtricks #jstools #tools #webdevelopment #webdeveloper #100DaysOfCode
1
1
3
19 Apr 2022
#React 18 is out! It includes the long-awaited #ConcurrentRenderer, which enables React to offer several improvements. Read #InfoQ and learn about them: bit.ly/3uPitVK @GuyNesher #WebDevelopment #JavaScript #JavaScriptLibraries #DynamicLanguages #ReactiveProgramming
2
2