In JavaScript given an object instance o in order to access

In JavaScript, given an object instance o, in order to access o\'s property prop, and o\'s method method(), you would use Select one: a 0.prop() for the property and o method() for the method b. o.prop for the property and o method() for the method c. o prop() for the property and o method for the method d o.prop for the property and o method for the method e. o.prop property for the property and o method method() for the method

Solution

Ans) b

Reason:

we have to access property of an object by using objectName.propertyName

so here o.prop to access property

we have to access method of an object by using objectName.methodName()

so here o.method() to access method.

__________Thank You

 In JavaScript, given an object instance o, in order to access o\'s property prop, and o\'s method method(), you would use Select one: a 0.prop() for the proper

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site