Innovative Solutions interview question

I was asked a few technical questions about JavaScript and SQL.