mirror of
https://gitlab.com/mfocko/CodeWars.git
synced 2024-11-09 11:09:07 +01:00
12 lines
203 B
JavaScript
12 lines
203 B
JavaScript
function openOrSenior(data){
|
|
let result = [];
|
|
|
|
for (let pair of data) {
|
|
if (pair[0] >= 55 && pair[1] > 7)
|
|
result.push("Senior");
|
|
else
|
|
result.push("Open");
|
|
}
|
|
|
|
return result;
|
|
}
|