Home > UI/UX Development > JavaScript > Javascript call() and apply() methods

Javascript call() and apply() methods

call(), apply() and bind() methods are used to invoke functions and bind objects.

apply(): apply method can be used to invoke a function with arguments as array.

 

call(): call method can be used to invoke a function with a list of arguments.

 

This Article is TAGGED in . BOOKMARK THE permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">