You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// You will be given an array of objects (associative arrays in PHP) representing data about developers who have signed up to attend the next coding meetup that you are organising. The list is ordered according to who signed up first.
// Your task is to return one of the following strings:
// < firstName here >, < country here > of the first Python developer who has signed up; or
// There will be no Python developers if no Python developer has signed up.
// For example, given the following input array:
//P: array of objects
//R: < firstName here >, < country here > of the first Python developer who has signed up; or There will be no Python developers if no Python developer has signed up.
//E:
//P:
function getFirstPython(list) {
let a= list.find((e)=>e.language=='Python')
// console.log(a)
return a?`${a.firstName}, ${a.country}`:'There will be no Python developers'