how do I call a function in a function in onclick?

I’d like to call my function in a function
it looks like that:

function ingadd (){
  function recpag (){
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:

In that section, the code sample uses a "isPrime" function within a "showPrimes" function.

Leave a Reply