Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## Literal Objects
- ```
- var myLiteralObject = {
- property1: 'some value',
- property2: 999,
- property3: ['a', 'b', 'c'],
- method1: function(){
- return 'hi!';
- }
- //...
- }
- ```
- ## Using Contructor Funcitons
- ```
- var MyConstructorFunc = function(){
- return...
- }
- ```
- ## Using Prototype
- ```
- Object.prototype.create();
- ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement