Infosys interview question

Random questions about coding with JavaScript