Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

162
Views
How JavaScript store unstored values?

I am trying to write a code using ES6 iterators :

let numbers = [100,200,300];

let iter = numbers[Symbol.iterator]();

iter.next(); // statement 1
iter.next(); // statement 2
console.log(iter.next()); // statement 3

How does javascript store the values of "statement 1" and "statement 2"?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

It doesn't.

  1. You call the iterator next function.
  2. It gets the value.
  3. It forwards the iterator.
  4. It returns the value from step 2.
  5. You discard the value because you don't assign it anywhere.
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!