-
CHG Healthcare
- Utah
Pinned Loading
-
During a code challenge I was tasked...
During a code challenge I was tasked creating a function (details after) and tried to do it recursively, I had to change gears but to prove to myself that I could do it, here it is. ~Challenge: "Write a function numericReduction(number) that takes a number and adds the digits together until only 1 digit remains and return the number of itterations it took"~ 1function numericReduction(num, count=1) {
2if(isNaN(num)) throw new Error('num must be a valid integer')
34var new_num = (num+'').split('').reduce((total, value)=>total+=parseInt(value),0)
5 -
ryanhorrocks.com-react
ryanhorrocks.com-react PublicPotential employers wanted to know my experience with React, since I didn't have any I decided to re-build my website from scratch using create-react-app as my starting point.
JavaScript
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.