Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
tahnik389918yIt doesn't just end by adding a pointer. This will change the whole structure of the language itself.
-
tahnik389918y@ryzokuken I don't understand it though. You are converting a JS object to json string and converting it back to JS object again? Why?
-
@tahnik so that the variable I am assigning this to gets the value and not the reference to the other variables. Sometimes, one needs to deliberately copy the value of a variable and not change the original. I hope this made it clear?
-
tahnik389918y@ryzokuken Oh you are assigning it to another variable to make a copy. I get it now. Yeah, I understand. It can be weird sometimes.
-
@ryzokuken sure thing. Be careful, though, I don't think it's supported in old IE.
Related Rants
-
Skipp36What devrant taught me: Everyone hates java Everyone hates php Everyone hates spaces Everyone hates tabs Ever...
-
tahnik63So I need to create a nice new web app. Let's look at some cool JS frameworks that I can work with. *5 mins l...
-
ahmedam23What only relying on JavaScript for HTML form input validation looks like
Every assignment is done by reference in JavaScript... like why? Lemme use a pointer when I need it.
ES2016 looks so much like Java, I swear nobody will notice if they added pointers... and over 9000 more confusing features.
undefined
js
pointer
wk30
javascript
reference