Frage im Vorstellungsgespräch bei DaySmart Software

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