Subscribe Us

Javascript Pointers Do Exist!

Pointers are a way to store a reference to a specific place in memory. In C, Golang, and C# pointers are made using the ‘&’ operator. In Javascript, variables that are an object or an array are always just pointers. Pointers deliver powerful functionality to the engineer, but at the same time, you might not want to be locked into using a specific operator just for pointers in a language that may want to change in the future. Since ES2015 the most obvious way would be like to make a copy of obj1 and store it in obj2.

image
Moogsoft Hacker Noon profile picture

Moogsoft

The Complete
Observability Platform

Tags

Join Hacker Noon

Create your free account to unlock your custom reading experience.



Javascript Pointers Do Exist!
Source: Trends Pinoy

Post a Comment

0 Comments