paint-brush
Grasp “By Value” and “By Reference” in JavaScriptby@lenafaure
36,255 reads
36,255 reads

Grasp “By Value” and “By Reference” in JavaScript

by Léna Faure5mJune 4th, 2017
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

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&nbsp;: </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.
featured image - Grasp “By Value” and “By Reference” in JavaScript
Léna Faure HackerNoon profile picture
Léna Faure

Léna Faure

@lenafaure

L O A D I N G
. . . comments & more!

About Author

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite