Using JSX syntax I wrote a function that takes either a float or an integer as a parameter and returns a formatted string. I’d like any feedback for refactoring the code. const moneyFormat = (float) => { let answer = []; let firstHalf; let secondHalf; // check if whole number if (float % 1 ===Read more