Last active
February 21, 2022 22:38
-
-
Save blarfoon/8fc55ecb058151379255d9707f7ffee8 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// Object Literal | |
const myObject = { | |
hi: "mom", | |
}; | |
// Object constructor | |
const myObject = new Object({ | |
hi: "mom", | |
}); | |
// Object constructor function | |
const myObjectFunc = function (val) { | |
this.hi = val; | |
}; | |
const myObject = new myObjectFunc("mom"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment