Skip to content

Instantly share code, notes, and snippets.

@me-shaon
Created November 7, 2017 12:36
Show Gist options
  • Save me-shaon/e70257453d07b82630edfa262a580bba to your computer and use it in GitHub Desktop.
Save me-shaon/e70257453d07b82630edfa262a580bba to your computer and use it in GitHub Desktop.
Javascript Object 2
var person = new Object(); //this is an object
//Adding dynamic properties to the 'person' object
person.firstName = "John";
person.lastName = "Doe";
person.age = 50;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment