Skip to content

Tag: javascript

how to call the function inside itself in javascript?

I am a beginner in JavaScript and I faced this test on one of testing websites and they gave me this test which is a function that convert given number to checkId which is the sum of all digits of the given number for example: given 237 its 2+3+7=12 12 is 1+2= 3 so the returned value should be 3