Closed orhantoy closed 4 years ago
Hi Orhan,Β Thank you so much for ur valuable feedback & I ll get u back in case of questions ππ Vh. NazaqatΒ
Sendt fra Yahoo Mail til iPhone
Den torsdag, oktober 31, 2019, 1:28 PM skrev Orhan Toy notifications@github.com:
@Nazaqat βοΈ
Warmup array exercises / Doubling of number
Nice work here π
Warmup array exercises / Working with movies
Exercise 1, 2, 3: β Nice work πͺ A few notes and suggestions:
Exercise 4: You almost have the right solution here. First, returnTag should have been an array of movies but it is instead and array of arrays of movies. If you check the output with console.log you'll see what I mean. Second, by setting obj.Tag you actually modify the movie objects from movies, which is not a huge problem but ideally you shouldn't modify that data.
Exercise 5: β Nice work. A suggestion: try to be consistent with where you have spaces:
Exercise 6: β Nice! The line gets a bit too long so I would suggest trying to break it into more lines so the code is easier to read.
Exercise 7: Your solution is close to being correct. You're returning an array of titles but that should have been an array of movies.
hyfBay - get the okay'est products here - continued
Seems like you got stuck with this one? I'll be happy to help, so feel free to ask questions about this exercise or the other ones.
β You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.
@Nazaqat :v:
Warmup array exercises / Doubling of number
Nice work here π
Warmup array exercises / Working with movies
movie
instead ofitems
would be more descriptive.items.title
.const shortTitle = movies.filter(movie => movie.title.length <= 5)
returnTag
should have been an array of movies but it is instead and array of arrays of movies. If you check the output withconsole.log
you'll see what I mean. Second, by settingobj.Tag
you actually modify the movie objects frommovies
, which is not a huge problem but ideally you shouldn't modify that data.movies.filter (items => items.rating > 6).map( items => items.rating)
(your code)movies.filter(items => items.rating > 6).map(items => items.rating)
(your code with consistent spaces)hyfBay - get the okay'est products here - continued
Seems like you got stuck with this one? I'll be happy to help, so feel free to ask questions about this exercise or the other ones.