Oddschecker interview question

A number of plain JavaScript questions.