From e5cddbb00ad5c62ea0f2d09e546b35eacc7341cd Mon Sep 17 00:00:00 2001 From: SayedAhmadZiaNickbeen Date: Mon, 12 Feb 2024 22:22:14 +0100 Subject: [PATCH] commit --- index.html | 4 ++-- main.js | 2 +- sayed.js | 16 ++++++++++++++++ 3 files changed, 19 insertions(+), 3 deletions(-) create mode 100644 sayed.js diff --git a/index.html b/index.html index 0034f6e..2d8a8e3 100644 --- a/index.html +++ b/index.html @@ -4,11 +4,11 @@ - Javascript example + Javascript sayed - + \ No newline at end of file diff --git a/main.js b/main.js index 965ff25..f03714c 100644 --- a/main.js +++ b/main.js @@ -1,4 +1,4 @@ -console.log("heyyy"); +console.log(""); const teresa = { role: "teacher", diff --git a/sayed.js b/sayed.js new file mode 100644 index 0000000..95158ed --- /dev/null +++ b/sayed.js @@ -0,0 +1,16 @@ +const Sayed = { + Name: "Sayed", + LName: "Nickbeen", + profession: "scientest", + address: "madrid", + interests: "programming", + hobbies: ["travelling", "studying"] +}; + +// Check if Sayed has 'programming' as one of his interests +const hasProgrammingInterest = Sayed.interests === 'programming'; +console.log('Does Sayed have programming as one of his interests?', hasProgrammingInterest); + +// Check if Sayed has 'travelling' as one of his hobbies +const hasTravellingHobby = Sayed.hobbies.includes('travelling'); +console.log('Does Sayed have travelling as one of his hobbies?', hasTravellingHobby); \ No newline at end of file