It seems that in Javascript everything can be done in several ways. My confusion is about Object creation.
First way:
var myObject = new Object();
myObject.name = 'Salko_Crni';;
myObject.someFunction = function() {
   console.log(this.name);
}
Second Way:
var myObject = {
   name: 'Salko_Crni',    
   someFunction : function() {
      console.log(this.name);
   }
};
Some literature mentions to use more robust literal method.
In my view (beginner), it looks more robust to use new Object();
But, who am I to tell?
 
    