Suppose I have any variable, which is defined as follows:
var a = function() {/* Statements */};
I want a function which checks if the type
you should use typeOf operator in js.
typeOf
var a=function(){ alert("fun a"); } alert(typeof a);// alerts "function"