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

Does Es6 Const Affect Garbage Collection?

In Kyle Simpson's new title, You don't know JS: ES6 and beyond, I find the following snippe… Read more Does Es6 Const Affect Garbage Collection?

Javascript: Constant Properties

In javascript, can I declare properties of an object to be constant? Here is an example object: … Read more Javascript: Constant Properties

How To Implement Properties Preprocessing Before Execution Like It Is Done In Grunt?

Grunt has syntax which is used to set and update configuration properties before task execution. F… Read more How To Implement Properties Preprocessing Before Execution Like It Is Done In Grunt?

Php Constant Inside Js File

I am facing a problem that I can not understand . During a plugin development I am including a file… Read more Php Constant Inside Js File

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?

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()