Sum of All Digits of a Number in JavaScript (Algorithmic Project)

preview_player
Показать описание
finding the sum of all digits of a number is an easy algorithm to solve, but it was a good example for this video so I can show you can solve problems in ways other than mathematical ways

in this video we first start by preparing our number and a variable to store the sum of all the digits, then we loop through all the digits one by one and add them together and store them inside the created variable, at the end we log the result to the user

I also have a playlist just about algorithmic projects like this one

#javascript #algorithm #js
Рекомендации по теме
welcome to shbcf.ru