Extreme Networks interview question

js basics