-4
I need a code that signals TRUE when the age is >= 21 years and the height >= 180 cm. The code I made is not working and I don’t know which error shows. =/
function maiorAlto(nome , idade , altura) {
if (idade >=21 && altura >= 181) {
return true
} else {
return false
}
}
maiorAlto(['Laura', 21, 187])
This answers your question? Problem Solving in Javascript
– Leo Letto