Codewars - Sum of Digits - Javascript

Опубликовано: 05 Декабрь 2020
на канале: The Coding Odyssey
2,594
45

In this video we are solving a challenge from Codewars called Sum of Digits / Digital Root using javascript:

Digital root is the recursive sum of all the digits in a number.

Given n, take the sum of the digits of n. If that value has more than one digit, continue reducing in this way until a single-digit number is produced. The input will be a non-negative integer.

Here is the link to the coding challenge:

Sum of Digits/ Digital Root: https://www.codewars.com/kata/541c863...

#codewarssumofodigits #sumofdigitscodewars #codewarsdigitalroot #digitalrootcodewars #coderwarschallenge