$ 0 0 What do you mean exactly? You add a function exactly like you wrote it if you want a function on the prototype that you can call like: m.speak(); Are you wanting to add a function as an attribute value? Why?