WebMD Health interview question

General questions about javascript