T5 Modern JavaScript (ES6 and later) · Lesson 1
Games: Modern JavaScript: strict mode, let, const and arrows
Choose the right option, fill in the blanks, write small pieces of code and fix broken ones. Code runs in a safe box inside this page.
Solved 0 of 45 items in this lesson.
1 / 21
What does this print?
const fs = [];
for (var i = 0; i < 2; i++) {
fs.push(() => i);
}
console.log(fs[0](), fs[1]());