const newspapers = [
{
name: 'thetimes',
address: 'https://www.thetimes.co.uk/environment/climate-change'
},
{
name: 'gaurdian',
address: 'https://www.theguardian.com/environment/climate-crisis'
},
{
name: 'telegraph',
address: 'https://www.telegraph.co.uk/climate-change'
}
]
cars.some(car => car.color === "red" && car.type === "cabrio");
// output: true
cars.every(car => car.capacity >= 4);
// output: false
{
"color": "purple",
"type": "minivan",
"registration": new Date('2012-02-03'),
"capacity": 7
}
//// Write a function that takes an array of objects (courses) and returns object of 2 new arrays // first one is containing the names of all of the courses in the data set. // second one is containing the names of all the students
const getInfo = (arr) => {
let coursesName = [];
let studentsName = [];
// write your code here
return { coursesName, studentsName };
};
//if you find this answer is useful ,
//upvote ⇑⇑ , so can the others benefit also . @mohammad alshraideh ( ͡~ ͜ʖ ͡°)