Skip to content

Instantly share code, notes, and snippets.

@Paul-Browne
Last active January 15, 2020 21:27
Show Gist options
  • Save Paul-Browne/aa59066ad8198bde33c4fa2949f75089 to your computer and use it in GitHub Desktop.
Save Paul-Browne/aa59066ad8198bde33c4fa2949f75089 to your computer and use it in GitHub Desktop.
var array = ["Monday", "Tuesday", "Wednesday"];
array.name = "Paul";
array.age = 35;
console.log(array);
// ["Monday", "Tuesday", "Wednesday", name: "Paul", age: 35]
console.log(array.length);
// 3
console.log(array.name);
// Paul
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment