diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..0400c96 Binary files /dev/null and b/.DS_Store differ diff --git a/array_challenges.js b/array_challenges.js index 3e3c564..9a9698c 100644 --- a/array_challenges.js +++ b/array_challenges.js @@ -29,8 +29,8 @@ const movies = [ for a promotional email campaign. Steps: - 1. Use `.map` to create a new array where each item is a string in this format: - "[title] - Rating: [rating]/10" + 1. Use `.map` to create a new array where each item is a in this format: + "[title] - Rating: [rating]/10"string 2. Log the resulting array. Expected Output: @@ -46,7 +46,14 @@ const movies = [ // ✍️ Solve it here ✍️ + /* const title = movies.map((data) => { + return data.title + }) + + console.log(title) + */ + /* Task 2: Find Highly Rated Movies 🌟 (`.filter`) @@ -66,6 +73,13 @@ const movies = [ */ // ✍️ Solve it here ✍️ + + /* const HighlyRatedmovies = movies.filter((data) => { + if(data.rating >= 8){ + return data.title + } + }) - \ No newline at end of file + console.log(HighlyRatedmovies) + */ \ No newline at end of file diff --git a/dom_challenges.js b/dom_challenges.js index 1f414b8..0771a90 100644 --- a/dom_challenges.js +++ b/dom_challenges.js @@ -133,7 +133,7 @@ export const newsData = { }; // html structure -{ + /*
OpenAI's latest language model demonstrates unprecedented reasoning capabilities and achieves human-level performance across various domains.
- Artificial Intelligence -+ OpenAI's latest language model demonstrates unprecedented reasoning + capabilities and achieves human-level performance across various + domains. +
+ Artificial Intelligence +