Codewars, Dollars and Cents , 2017 Javascript Implementation

Lesson Summary

In this Codewar we are asked to create a function that takes one number parameter and returns it in money format. We apply the toFixed method to format our number with 2 decimal places. We then return a dollar sign and concatenate our fixed amount.

Subscribe To Monthly Newsletter. Chance to Win Monthly Prizes

* indicates required