Pasted
Archive
Sum up a number until it becomes 1 digit JS
jraavis
|
PRO
|
08/13/21 06:10:43 AM UTC
|
0 ⭐
|
2111 👁️
|
Never ⏰
|
[]
JavaScript
|
50 B
|
None
|
0 👍
/
0 👎
Raw
Download
Clone
Embed
Print
View
Choose
Raw
Download
Clone
Embed
Print
View
var n = 5678; sum = n % 9 || 9; console.log(sum)
Comments
Comments