DaySmart Software interview question

Can you complete the JavaScript function and then write unit testing for it.