everybody knows in javascript"everything is an object including function." but when i typeof a function,the result is function not object.why?
Because if typeof returned ‘object’ for everything, it’d be pretty useless.
everybody knows in javascript"everything is an object including function." but when i typeof a function,the result is function not object.why?
Because if typeof returned ‘object’ for everything, it’d be pretty useless.