Exercise 5.3
This commit is contained in:
@@ -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);
|
||||||
Reference in New Issue
Block a user