Last active
April 8, 2019 02:00
-
-
Save Maccauhuru/48f371f2ceac0f3db91cabc07724b7b4 to your computer and use it in GitHub Desktop.
Object Example Laptop
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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