Sat, 18 May 2024
NetArt Media     Pay 2, Get 3!    


How to get the number of parameters expected by a JavaScript function?

By: Peter, NetArt Media
Tue, 15 September 2020

<script>

function YourFunction(arg1,arg2)
{

}

alert(YourFunction.length);

</script>


Category: Javascript
Share this post:



See All Scripts






Subscribe for our newsletter

Receive the latest blog posts direct in your mailbox