Javascript: Add property to prototype with class expression

Viewed 1084

How to add a property to prototype with class expression. I can do it with the older method:

function Example(){}
Example.prototype.property = 'PROPERTY'

But I don't know how can I do the same thing with class expression

1 Answers

Actually you can do it the same way :) enter image description here

Related