Files
JavaScript-from-Beginner-to…/Chapter 05/Exercise 5.3
T
2021-11-25 20:26:58 +05:30

10 lines
199 B
Plaintext
Vendored

const myWork = [];
for (let x = 1; x < 10; x++) {
let stat = x % 2 ? true : false;
let temp = {
name: `Lesson ${x}`, status: stat
};
myWork.push(temp);
}
console.log(myWork);