What is the Iterator Protocol in JavaScript? What two things must an object implement to be a valid iterator? | Iterator and Generator | javascript Interview Questions | NextRound.in