I have a problem with my exercise:
const negativeNumbers = [];
function extractNegativeNumbers(numbers) {
if (numbers<0){
console.log("It's negative number")
} else{
console.log("It's not negative number")
}
}
I don't know how to append result of mine fucntion to const array. with which operator should i do this ?
Aucun commentaire:
Enregistrer un commentaire