✅ Explanation:
In JavaScript, the typeof operator is used to find the type of a value.
When you pass an anonymous function (like function () {}) to typeof, JavaScript returns the string:
"function"
Even though functions are technically objects in JavaScript, typeof gives a special result just for functions. This is the only case where typeof returns something more specific than "object".
🧠 Why does this happen?
Because functions are callable objects, JavaScript designers decided to make developer life easier by letting typeof return "function" instead of "object".
typeof function () {}
typeof something === "function"
#Shorts #JavaScript #Typeof #JSQuiz #CodingQuiz #WebDevelopment #FrontendDev #LearnJavaScript #CodeChallenge #DailyCoding #jsquiz #js
#programming #coding
#Shorts #JavaScript #BitwiseOperators #CodingQuiz #JSChallenge #DevShorts #LearnToCode #TechShorts #CodeTrick #FrontendFun #DailyCoding