Fri, 17 May 2024


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

By: Nathalie, 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