Answer the question
In order to leave comments, you need to log in
Why doesn't it pass the test?
Good evening everyone. Please tell me why the function does not pass the test for me:
const checkBingo = num => {
const cells = document.querySelectorAll('.cell');
cells.forEach(cell => {
if (сell.textContent === num) {
cell.classList.add('flip');
}
});
};
checkBingo
and createBall
Answer the question
In order to leave comments, you need to log in
if (cell.textContent === num) {
if (cell.textContent == num) {
if (+cell.textContent === num) {
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question