I'm a total noob to this programming gig. I typed in my own version of the array you suggested here. Now i'd like to know where to type in the other bits of code to get the results similar to what you got. What console do you use? where can i get it?
We've all been there. You need to console.log() the name of the variable and then you'll see what has been returned. let me know how it goes :D. don't give up.
The variable name is: filteredBooks, so i put that in the console log like you suggested, console.log(filteredBooks), hit enter and i got a bunch of error messages. What am i doing wrong?
I'm a total noob to this programming gig. I typed in my own version of the array you suggested here. Now i'd like to know where to type in the other bits of code to get the results similar to what you got. What console do you use? where can i get it?
We've all been there. You need to console.log() the name of the variable and then you'll see what has been returned. let me know how it goes :D. don't give up.
The variable name is: filteredBooks, so i put that in the console log like you suggested, console.log(filteredBooks), hit enter and i got a bunch of error messages. What am i doing wrong?
😅 I would have to see the code to be able to help you.
I figured it out, i was supposed to put the code:
const filteredBooks = books.filter(books => {
return books.writer === "Jeremiah";
});
console.log(filteredBooks)
at the end of my array, and i ran it through Nodejs
Awesome. Glad you got it!