Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Javascript example</title>
<title>Javascript sayed</title>
</head>
<body>

<script src="main.js"></script>
<script src="sayed.js"></script>

</body>
</html>
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
console.log("heyyy");
console.log("");

const teresa = {
role: "teacher",
Expand Down
16 changes: 16 additions & 0 deletions sayed.js
Original file line number Diff line number Diff line change
@@ -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);