• Courses
  • Code Compiler
  • Discuss
  • Pricing
  • Teams
Menu
0
Is because the variables are passed by reference, Like this: var a = new Obj(); a.foo = 'bar'; var b = a; b.foo = 'baz'; console.log(a.foo); baz
16th Jun 2016, 1:05 PM
Lenin Jose Meza Zarco
Lenin Jose Meza Zarco - avatar

Often have questions like this?

Learn more efficiently, for free:

  • Introduction to Python

    7.1M learners

  • Introduction to Java

    4.7M learners

  • Introduction to C

    1.5M learners

  • Introduction to HTML

    7.5M learners

See all courses
Hot today
Problem with Javascript function
0 Votes
For Programming i need Patience
0 Votes
How can I print a Python set so it looks clean (no {} brackets or quotes)?
2 Votes
Html
0 Votes
Can someone help and explain better on slicing
1 Votes
How do I remove duplicates from a list but keep the order?
0 Votes
About css...
0 Votes
How do I print a multiplication table neatly?
0 Votes
Why we use return in function ?
0 Votes
Is there anyone who is working on algo bot (trading bot)
0 Votes