Report question

Question: How can I write reusable Javascript?