Identify thename:valuepair that includes a function name and its commands, which is used to add methods to a custom object.
A. var objName = {method: function() {commands}}
B. var objName = {command.function() {method()}}
C. var obj= {function() {commands}}
D. var objName = {function:method() {commands}}
Computer Science & Information Technology