There are two ways to create an object:
using object literal notation (which is what you just did) and
using theobject constructor.
There are two ways to create an object:
using object literal notation (which is what you just did) and
using theobject constructor.