DEV Community

davidka7
davidka7

Posted on

Call a function inside a function

Sometimes you’ll need another global function or one local function to rerun to perform some deeper algorithms and save some lines of code so I’ll show an example of one.

Function run(number){
Let newNumber = 0
Function again(){

}
For (let i=0; i<number; I++)
{

newNumber = again(newNumber)

}
Return newNumber
}

Top comments (0)