Javatpoint Logo
Javatpoint Logo

jQuery isFunction() method

The isFunction() method is used to test whether the passed argument is a function or not. This method returns a Boolean value. If it finds the passed value is a function, it returns true. Otherwise, it returns false.

Syntax

This method accepts a single parameter, which is defined as follows -

val - It is any value to be tested.

Let's understand the working of the isFunction() method using an illustration.

Example

In this example, we are using the isFunction() method to determine whether the passed values are function or not. Here, we are passing different values such as null, undefined, etc., as an argument.

Test it Now

Output

After the execution of the above code, the output will be -

jQuery isFunction() method





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA