0
How to use function in function?
Don't work my code with click event. For example, var image=document.getElementById(); var dop=math.random(); var number=1; function Start(){ number×=dop; function MoreCards(){ image.src='dolbaeb.png'; } }
4 ответов
+ 4
To use function inside Another function you can call the function two inside function one like this example
function function_one() {
function_two();
console.log("The function called 'function_one' has been called.");
}
function function_two() {
console.log("The function called 'function_two' has been called.");
}
function_one();
0
It's called a nested/inner function and you call it inside the outer function, also using "×" for multiplication is incorrect use * 🙂
0
How correct it?
0
Thank u. I can try correct my code