Repeatedly add all its digits until the result has only one digit.
Given an integer num, repeatedly add all its digits until the result has only one digit, and return...
Tags: javascript, programming, beginners, datastructures