From 1f6a577766b48546080ec3b8791a5fffc00c7a0a Mon Sep 17 00:00:00 2001 From: Karan <50290386+Sonawane-Karan26@users.noreply.github.com> Date: Wed, 24 Nov 2021 19:37:14 +0530 Subject: [PATCH] Exercise 5.3 --- Chapter 5/Exercise 5.3 | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 Chapter 5/Exercise 5.3 diff --git a/Chapter 5/Exercise 5.3 b/Chapter 5/Exercise 5.3 new file mode 100644 index 0000000..0d654f5 --- /dev/null +++ b/Chapter 5/Exercise 5.3 @@ -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);