Challenge: Iterator Pattern
Explore how to implement the iterator design pattern focusing on reverse iteration of a hashmap. Learn to define a ReverseIterator class with methods to traverse keys backwards and effectively display values in reverse order. This challenge strengthens understanding of behavioral patterns and object communication in JavaScript.
We'll cover the following...
We'll cover the following...
Problem statement
In this challenge, you have to reverse iterate a simple hashmap and display its key values.
You need to implement the reverseIterate function that accepts the hashmap, items, and displays the key values in reverse. To ...