DEV Community

Discussion on: Ultimate JavaScript CheatSheet

Collapse
 
gwmccull profile image
Garrett McCullough

your toExponential and toPrecision examples are broken. If a return statement is on a line by itself, it will just return undefined.

Some comments have been hidden by the post's author - find out more