All interview questionsIn JavaScript, how would you explain iterator protocol?BeginnerAnswerAn iterator returns successive result objects with value and done fields.