Skip to content

Instantly share code, notes, and snippets.

@Maccauhuru
Last active April 8, 2019 02:00
Show Gist options
  • Save Maccauhuru/48f371f2ceac0f3db91cabc07724b7b4 to your computer and use it in GitHub Desktop.
Save Maccauhuru/48f371f2ceac0f3db91cabc07724b7b4 to your computer and use it in GitHub Desktop.
Object Example Laptop
const myLaptopObject = {
name : "Dell",
color : "black",
weight : 3.75,
working : true,
start : function (){
//function (i.e method) to power up device goes here
},
increaseVolume : function (){
//function(i.e method) to increase volume goes here
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment