JavaScript
How will y ...
Site Language: English
Українська
English
Русский
Programming Tests
Login
Sign Up
Programming Tests
Theory
Snippets
Papers
Landing
Android
Prices
FAQ
Cosmo Story
Terms and Conditions
Privacy Policy
Cookies Policy
Send Feedback
How will you createan empty function that will do nothing?
$.noop();
$.clear();
$.empty();
$.doNothing();
Explanation
jQuery.noop() and empty functiont that do nothing. This function doesn't accept any arguments. This is useful for plugin authors who offer optional callbacks; in the case that no callback is given, something like jQuery.noop could execute
Like
Login in
to like
Comment
Login in
to comment
Share
Tweet
J
avaScript
Quiz
Login to learn JavaScript
or
Read more about
JavaScript Quizzes
Follow CodeGalaxy
Mobile Beta
Send Feedback
Sign Up Now
or
Subscribe for future quizzes
Login in to like
Login in to comment