Grasp “By Value” and “By Reference” in JavaScript
Too Long; Didn't Read
<a href="https://hackernoon.com/tagged/javascript" target="_blank">JavaScript</a> is an Object-Oriented language: this means that most things in JavaScript are <strong>Objects</strong>. For example, functions are Objects. The only elements that are not objects are the <strong>Primitive Data Types : </strong><em>string</em>, <em>number</em>, <em>boolean</em>, <em>null</em> and <em>undefined.</em> These Primitive Data Types also are<em> </em><strong>immutable</strong>, which means that once created they cannot be modified.