function solution(quiz) {
return quiz.map((q) => {
let [formula, answer] = q.split('=')
return eval(formula) === +answer ? 'O' : 'X'
})
}
function solution(quiz) {
return quiz.map(q => {
const [formula, answer] = q.split('=');
return eval(formula) === +answer ? 'O' : 'X';
});
}