Skip to content

Instantly share code, notes, and snippets.

@jcar787
Created April 14, 2022 23:12
Show Gist options
  • Save jcar787/dcd53b21ddebaa2bd0f55581c7f0a855 to your computer and use it in GitHub Desktop.
Save jcar787/dcd53b21ddebaa2bd0f55581c7f0a855 to your computer and use it in GitHub Desktop.
JavaScript object reference
const myName = { name: "Jeff" };
const sameName = myName;
sameName.name += " C.";
console.log("My name is", myName.name);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment