GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing raw.githubusercontent.com — raw.githubusercontent.com # Creation
There are two ways to create an `object` in JavaScript:
1. literal
```js
var object = {};
// Yes, simply a pair of curly braces!
```
> ***Note:*** this is the **recomended** way.
2. and object-oriented
```js
var object = new Object();
```
> ***Note:*** it's almost like Java.
|
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |