The typeof operator in JavaScript returns 'object' for ________.
- null
- undefined
- arrays
- functions
In JavaScript, the typeof operator returns 'object' when used with the value null. This can be a source of confusion because null is not actually an object; it's a primitive value with its own data type.
Loading...
Related Quiz
- Cache ______ is a situation where multiple requests are made to a resource that is expensive to produce, causing a surge in load.
- How can you implement inheritance between two objects in JavaScript?
- When performing file operations using the fs module, handling ______ errors is crucial to ensure data integrity.
- How can middleware be added to an Express application to process requests?
- To run a pre-hook for a custom script named "build," you would define a script named ______ in your package.json file.