Quiz on Exploring Metaprogramming

Attempt a quiz on the basic concepts of metaprogramming.

1

How would you add a method to an instance instead of adding it to all instances of a class?

A)
instance.methodName = static function...
B)
ClassName.prototype.methodName = function...
C)
instance.methodName = function...
Question 1 of 50 attempted

Get hands-on with 1400+ tech skills courses.