Module 28 of 35 · Text
#28
/ *
Métodos de array - .includes ()
---------------------------
Complete a função abaixo para verificar se um país está no Reino Unido
* /
var ukNations = ["Scotland", "Wales", "England", "Northern Ireland"];
function isInUK(country) {
return; // complete this statement
}
/*
DO NOT EDIT BELOW THIS LINE
--------------------------- */
console.log(isInUK("France"));
console.log(isInUK("Republic of Ireland"));
console.log(isInUK("England"));
/ *
RESULTADO ESPERADO
---------------
falso
falso
verdade
* /