Exercise 5.3

This commit is contained in:
Karan
2021-11-24 19:37:14 +05:30
committed by GitHub
parent 7b6bbe367a
commit 1f6a577766
+9
View File
@@ -0,0 +1,9 @@
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);