SAP interview question

Code reviews on JavaScript