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

Define Const Variable Using Eval()

When I try to define a variable using var, everything is working. But defining it as const is not w… Read more Define Const Variable Using Eval()

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?