Print the first 10 Fibonacci numbers starting with 0 and 1.
Ready — edit the code above and click Run.
// See explanation
console.log("done");
Try solving on your own first, then reveal the official answer.
Each term is sum of previous two. Interviewers often ask iterative vs recursive versions.