Possible Duplicate:
creating objects - new object or object literal notation?
Literal notation VS. constructor to create objects in JavaScript
I'm going through my very first Javascript tutorial.
I just found two ways to create a JS object.
var person = new Object();
person.name = Tom;
person.age = 17;
and
var person = {};
person.name = Tom;
person.name = 17
Any difference between these two ways of object creation? Since the second looks simpler, can we always use it under any condition?