Thomson Reuters interview question

Basic questions about programming with Javascript