I’d like to call my function in a function
it looks like that:
(js)
function ingadd (){
\\code
function recpag (){
\\code}
now how do I call recpag in onclick(html)
I tried like a regular function but it didn't work..
thank you ♡♡
>Solution :
Hi it appears you are new to javascript. There are a lot of online resources on javascript fundamentals, and those places will probably provide more benefits for a beginner.
I googled a random one:
https://javascript.info/function-basics#functions-comments
In that section, the code sample uses a "isPrime" function within a "showPrimes" function.