1

What are differences and when to use the following ways to create object?

var Obj ={
    foo(){}
}

var Obj ={
    foo:function(){}
}
Pranay Kumar
  • 1,951
  • 13
  • 13

0 Answers0