From 0d0838d78c154d7e8c99324b8b2c8129ce451fa3 Mon Sep 17 00:00:00 2001 From: Bashaier AlMeshaileh <56195895+bkmushaileh@users.noreply.github.com> Date: Sun, 20 Jul 2025 08:57:13 +0300 Subject: [PATCH 1/3] first task --- src/variables.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/variables.ts b/src/variables.ts index bd5e775..7e90b9a 100644 --- a/src/variables.ts +++ b/src/variables.ts @@ -15,6 +15,12 @@ let hobby: string; let funFact: string; let image: string; +fullName = "Bashaier Khaled AlMeshaile"; +yearOfBirth = 1996; +hobby = "Learning New Staff"; +funFact = + "Now, my brain has 100000 tabs open, and none of them are loading...."; +image = "My-image"; /** * Part 2: String Interpolation * Create the following new variables that interpolate @@ -28,6 +34,12 @@ let image: string; let fullNameString: string; let ageString: string; let hobbyString: string; +const myAge = 2025 - yearOfBirth; + +fullNameString = `My name is ${fullName}`; +ageString = `I am ${myAge}`; +hobbyString = `My hobby is ${hobby}`; +console.log(`${fullNameString}.\nI am ${myAge}.\n${hobbyString}. `); /** * Part 3: Re-assignment From cb677cfe5c92f69aee2ba77491154ed5b06747b5 Mon Sep 17 00:00:00 2001 From: Bashaier AlMeshaileh <56195895+bkmushaileh@users.noreply.github.com> Date: Sun, 20 Jul 2025 09:03:12 +0300 Subject: [PATCH 2/3] Add variables.ts with basic logging --- .DS_Store | Bin 0 -> 6148 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 .DS_Store diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..99950a5c90d1ed7de5d29e2f34a708389c7e6e64 GIT binary patch literal 6148 zcmeHKO;6iE5S>jzV+)W{sg<}?veYXL2_PiI#ZAMZhhA{i9$FOaIDo-;qu6N<5t7gC zkLk6)r2nO-_Ra3nHVL^R1Uu5~+nt@+k2lG#mxx4X9Jh%YMC3pjD=vy#g!@?+q+%>} zpipCkbVdVuMJdSzZ)>=Z3~=tA(vU*x(wBC1%=i28G0-){GcCi&2;`bRWOle}oP zeu_%9w(_Lz)SXr5I5?M+pa_d`-U&yaxbdLTlF0(Gb` zPYj{MVfT!mZ?M#;!%3LOhcGh>^Fk47c8u>ScM`rvTUrJz1G5ZNb+f_u|KalY|7?(L zSq3Zv4~hX%>jvEpwq)+sh0XC@>p@STEbLcm{2PLbx{Be;SMdf^3G5zMfWE;}BP Date: Sun, 20 Jul 2025 22:08:50 +0300 Subject: [PATCH 3/3] Done --- src/variables.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/variables.ts b/src/variables.ts index 7e90b9a..186cc73 100644 --- a/src/variables.ts +++ b/src/variables.ts @@ -50,16 +50,20 @@ let hackerScore = 0; function incrementBy1() { // Increment hackerScore by 1 👇🏻 + hackerScore++; } function decrementBy1() { // decrement hackerScore by 1 👇🏻 + hackerScore--; } function incrementBy2() { // Increment hackerScore by 2 👇🏻 + hackerScore = hackerScore + 2; } function decrementBy2() { // decrement hackerScore by 2 👇🏻 + hackerScore = hackerScore - 2; } // Ignore this part (: