Skip to content Skip to sidebar Skip to footer
Showing posts with the label Constants

Are Variables Declared With Let Or Const Hoisted?

I have been playing with ES6 for a while and I noticed that while variables declared with var are h… Read more Are Variables Declared With Let Or Const Hoisted?

Why Object Const Can Be Changed After Definition In Javascript?

In JavaScript: const a = 6; a = 2; // Error const o = {}; o = 7; // Error o.a = 5; // Good. Why? … Read more Why Object Const Can Be Changed After Definition In Javascript?

Why Object Const Can Be Changed After Definition In JavaScript?

In JavaScript: const a = 6; a = 2; // Error const o = {}; o = 7; // Error o.a = 5; // Good. Why? … Read more Why Object Const Can Be Changed After Definition In JavaScript?