Explore the different types of variables in JavaScript

Опубликовано: 13 Июнь 2026
на канале: Kahal Tech Geek
31
1

Exploring Types of variable declaration in Javascript:

var variables
Function scope.
if not initialise then shown undefined value.
Follows hoisting.
Can be reassign value.

let variables
Block scope.
if not initialise then shown undefined value.
Not following hoisting.
Can be reassign value.

const variables
Block scope.
const variable must be initialised.
Not following hoisting.
Cannot be reassign value.

In just 3-4 days, I'll be sharing a detailed breakdown of each of these points on my YouTube channel, Kahal Geek Tech. If you're excited to learn more about this topic, make sure to follow me on Instagram @kahal.geektech for updates and subscribe to my YouTube channel, so you don't miss out on the upcoming content. Stay tuned!

#JavaScript
#JS
#Coding
#WebDevelopment
#Programming
#FrontEnd
#Shorts
#CodeSnippet
#WebDev
#TechTips
#ProgrammingTips
#CodeExplained
#SoftwareDevelopment
#LearnJavaScr