HCLTech interview question

Javascript concepts