Const VS Let
· 11 min read
As you may have already heard, JavaScript has two types of variables, let
and const
.
You'd probably excpect that const
stands for making a variable constant
, or rather the value?
Well, you can already see the problem.
Before we dive into the topic, let's first understand what a constant
variable is meant to do.
When you make something constant
, you can't change the that due to immutability.