Solution to JavaScript Arithmetic Quiz Exercise