In JavaScript, a for…in loop is used to iterate over the ________ of an object.
- properties
- values
- methods
- variables
In JavaScript, a for...in loop is used to iterate over the properties of an object. It is commonly used for object iteration, and it iterates through the keys or property names of an object.
Loading...
Related Quiz
- Named imports in JavaScript must match the exported names in the module, unless they are ________.
- When would you use export default over named exports in a module?
- How can you match routes with a specific pattern in Express.js?
- Which method should be used to handle the rejection of a Promise?
- To avoid blocking the Event Loop with CPU-bound tasks, developers can offload such tasks to ________.