"Discovering JavaScript: A Beginner’s Perspective on Variables"

When I first started learning JavaScript, I was quite confused about the difference between let, var, and const variables. Const is used to declare a constant variable. This means the value assigned to a const variable cannot be changed or reassigned after it is declared. Then i realized variables which are declared using let, it was possible to reassign that value, but it was not possible to redeclare in the same scope. The var allows both to declare and reassign the value. Once I understood these concepts, it became clearer, and my confidence in using JavaScript grew. Step by step, I found it not only easy but also exciting to learn. This is the first impression for me of learning JavaScript…
Subscribe to my newsletter
Read articles from Arunmathavan K directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
