HubSpot Interview Question

If I would like to add a function to the string prototype, how would I do it?