Difference in const and Object.freeze() in JavaScript
This post describes the best practices to define constants and configuration values in JavaScript using const
and Object.freeze()
and the difference between them.
This post describes the best practices to define constants and configuration values in JavaScript using const
and Object.freeze()
and the difference between them.
This post describes the usage of various Object methods like Object.create()
, Object.assign()
, Object.freeze()
, Object.seal()
and many more available in JavaScript with examples.
A nice feature addition in ES2015 (ES6) was the introduction of let
and const
keywords for variable declaration. You can use var
, let
and const
keyword interchangeably for variable declaration though it makes a difference in terms of their scope, usage and hoisting. If you are not aware of these differences then please continue to read…
This post explains the DOM, Virtual DOM and Shadow DOM concepts and their differences…