In JavaScript, a variable declared without the var, let, or const keyword inside a function becomes a property of the ________ object.
- "window"
- "global"
- "local"
- "this"
In JavaScript, a variable declared without the var, let, or const keyword inside a function becomes a property of the "global" object. This can lead to unexpected behavior, so it's important to declare variables properly.
Loading...
Related Quiz
- When are CORS preflight requests sent by the browser?
- You are tasked with evolving the schema of a critical, high-traffic database while minimizing downtime and data inconsistency. What strategies would you employ to safely apply schema migrations?
- For processing HTTP requests, Express.js allows defining middleware functions at the application level and ______ level.
- When using Jest to test React components, the ______ method is commonly used to render components in a test environment.
- How does JavaScript handle circular dependencies between modules?