1

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

var Obj ={
    foo(){}
}

var Obj ={
    foo:function(){}
}
Pranay Kumar
  • 2,139
  • 1
  • 15
  • 15

0 Answers0