Lone Wolf Technologies interview question

Right a JavaScript function to do a specific thing.