The return value from the typeof operator is always one of six (seven as of ES6! - the "symbol" type) string values.
, What about the typeof(user defined function)? It does return as function. So it should be seven(or eight including symbol)!. I'm new to JavaScript, Correct me If I'm wrong. But when tried in Chrome console typeof for user defined function returned as function.
The following are the only return values for typeof:
There's 7 of them. Technically, "null" should be the 8th one, but it's a long-known bug that typeof null is actually "object".
"function" is not updated in the page!!
Most helpful comment
"function" is not updated in the page!!