How to check data type of any variable in jQuery?



How to check data type of any variable in jQuery?..

Answer / chaitanya

Using $.type(Object) which returns the built-in JavaScript type for the object.

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More jQuery Interview Questions

Explain width() vs css(‘width’)?

0 Answers  


Is vanilla js faster than jquery?

0 Answers  


What are the selectors in jquery? How many types of selectors in jquery?

0 Answers  


What is the use of jQuery filter?

0 Answers  


What is called chaining?

0 Answers  






What is the difference between onload() and document.ready()?

0 Answers  


What are the different types of selectors in jquery?

0 Answers  


What is normally not included in a cloned copy? : jQuery Mobile

0 Answers  


How do I check if an HTML element is empty using jQuery?

0 Answers  


What is wrong with this code line "$('#myid.3').text('blah blah!!!');"

1 Answers  


What does jQuery data() function do?

0 Answers  


Why use jQuery filter() Methods?

0 Answers  


Categories