MCQOPTIONS
Saved Bookmarks
This section includes 3 Mcqs, each offering curated multiple-choice questions to sharpen your JavaScript Questions & Answers JavaScript Extensions knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
Which method of the iterable object returns an iterator object for the collection? |
| A. | iterator() |
| B. | _iterator_() |
| C. | _iteration_() |
| D. | _return_iterator_() |
| Answer» C. _iteration_() | |
| 2. |
Which exception does the Iterators throw from their next() method when there are no more values to iterate, that work on finite collections? |
| A. | Exit Iteration |
| B. | Abort Iteration |
| C. | Abort |
| D. | Stop Iteration |
| Answer» E. | |
| 3. |
The let keyword cannot be used ___________ |
| A. | as a substitute of var |
| B. | as a block statement to define new variables |
| C. | to define variables that are scoped to a single expression |
| D. | in a else if loop, as a substitute for var |
| Answer» E. | |