
We build products that help designers and developers ship faster.
Europe
Joined May 2014
- Tweets135
- Following3.9K
- Followers917
- Likes15.8K
Pinned Tweet
🚀 Introducing Shards Dashboards, a premium admin dashboard UI toolkit packed with lots of templates, custom components and support for third-party plugins. Make sure you check it out! designrevision.com/downloads… #productlaunch #bootstrap
🧵 let, const, and the death of var in JavaScript
If you’re still using var, it’s time for a little intervention.
Let’s break down how variables really work in JS, and why let and const should be your new best friends.
👇 A thread for devs who want cleaner code:
6
69
Want the full breakdown?
Real examples, gotchas, and quick practice exercises, all here:
👉 designrevision.com/let-const…
Bookmark it, share it with your team, and please…
let var go.
#JavaScript #webdev #CodeNewbie #100DaysOfCode
25
Common mistakes:
- Thinking const means totally immutable (it's not)
- Re-declaring variables with let in the same scope
- Still using var out of habit or because a 2013 tutorial said so
18
ES6 brought the fix: let and const
- let is block-scoped
- const is also block-scoped, and non-reassignable
- Both don’t hoist like var
Result: fewer bugs, more predictable behavior, and clearer intent.
13
var had a good run.
But it's:
Function-scoped (not block-scoped)
Hoisted in weird ways
Still hanging around in legacy code
Ever used var in a loop and got back 5, 5, 5, 5, 5?
Yep, that’s why it’s gotta go.
14
What is a variable, really?
It’s just a named reference to a value in memory. That’s it.
But in JS, how you declare that variable makes a huge difference in scope, safety, and readability.
14
🎉Shards 3.0.0 has been updated to the latest version of Bootstrap (4.3.1)! Make sure to check it out! designrevision.com/downloads…
😻Shards Pro is now live on @ProductHunt and it comes with a special surprise! With this launch, we are giving away discounts up to 40% OFF the already discounted price, but they're in limited supply! Make sure to grab yours while they last! buff.ly/2LDZOaI
2
🚀Introducing Shards Pro, a premium UI pack featuring 350+ components, 120+ blocks, 15 pre-made templates in 13 categories perfect for digital products, mobile apps, startups or agencies. buff.ly/2vNuFqu #bootstrap4 #ui
2
🎨Apple, Google, and Netflix logos get a Bauhaus makeover buff.ly/2tU8M7W
3
⚛️Check out some of the best free React tutorials and courses that can help you master React as fast as possible! buff.ly/2H1hlqr #reactjs #tutorials
2
📦⚛️Check out some of the best React UI component libraries in 2019 buff.ly/2GANqFg #react #components #library
⚛️Here are the best 10+ React admin dashboards that you can use for your next amazing project! #react #admin buff.ly/2Gj2yaa





