mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2025-07-07 02:05:08 +08:00
fixed some spellings
This commit is contained in:
@ -17,7 +17,7 @@ function sumOfDigitsUsingString (number) {
|
||||
}
|
||||
|
||||
/*
|
||||
The input is divided by 10 in each iteraction, till the input is equal to 0
|
||||
The input is divided by 10 in each iteration, till the input is equal to 0
|
||||
The sum of all the digits is returned (The res variable acts as a collector, taking the remainders on each iteration)
|
||||
*/
|
||||
function sumOfDigitsUsingLoop (number) {
|
||||
|
Reference in New Issue
Block a user