#objects

Javascript Map

Mar 12, 2020

Knowing and understanding javascript data structures in programming is essential. One of those very useful data structures in javascript is a Map. A map holds key-value pairs and remembers the insertion order of those keys...

Passing Arguments Using Spread

Oct 10, 2019

The spread syntax in javascript allows an iterable (array, strings, or object literals) to expand in places where zero or more arguments are expected. Why is this useful? Let's find out!

Object Destructuring In Javascript

Jul 18, 2019

Object destructuring is a convenient way to extract multiple values from objects and arrays.

Freezing Object In Javascript

Jun 04, 2019

Object.freeze() is useful to prevent an object from changing, so no new properties can be added to it, no existing properties can be removed, the enumerability can not be changed, and existing values of properties can not be changed.

Javascript: Pass By Reference Or By Value?

Apr 28, 2019

Is Javascript pass by reference or pass by value? In fact, it’s a little bit of both.