You are creating the function funChallenge, but in order to run the code inside it, you have to call it, like this:
let n = funChallenge(100);
Please mark this as the answer if it solved your problem :)
p.s. also note, the code will crash because you are calling anotherFunction(); inside it, and you haven't defined anotherFunction(). You will want to define that function too.
e.g.
function anotherFunction() {
console.log('another function!');
}
You are creating the function
funChallenge
, but in order to run the code inside it, you have to call it, like this:Please mark this as the answer if it solved your problem :)
p.s. also note, the code will crash because you are calling
anotherFunction();
inside it, and you haven't definedanotherFunction()
. You will want to define that function too.e.g.