Just starting with JavaScript and struggling to solve this problem. I attempted using map and filter but couldn't quite implement the if condition correctly. How can I find the records in the given array that have a gender of 0 and color is red?
let student = [
{
"ID": "1",
"Name": "Senpai",
"Gender": "1",
"Class": "32",
"Strength": "0",
"Hairstyle": "1",
"Color": "Black"
},
{
"ID": "2",
"Name": "Yui Rio",
"Gender": "0",
"Class": "11",
"Strength": "0",
"Hairstyle": "2",
"Color": "Red"
},
{
"ID": "3",
"Name": "Yuna Hina",
"Gender": "1",
"Class": "12",
"Strength": "0",
"Hairstyle": "3",
"Color": "Red"
},
{
"ID": "4",
"Name": "Koharu Hinata",
"Gender": "0",
"Class": "21",
"Strength": "0",
"Hairstyle": "4",
"Color": "Green"
},
{
"ID": "5",
"Name": "Mei Mio",
"Gender": "1",
"Class": "22",
"Strength": "0",
"Hairstyle": "5",
"Color": "Blue"
}
];