Wipro Interview Question

2. And JavaScript output ques.