Skip to content

Instantly share code, notes, and snippets.

@jcar787
Created April 14, 2022 23:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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