SixSense interview question

Basic questions based on javascript