Solution to JavaScript Numeric Value Exercise