Posts by anderson • 1 point
1 post
-
-4
votes1
answer49
viewsQ: Check for element in array
I need to check if a name exists inside the array and return true if you find or false otherwise. let names = ["Ana","João","Pedro","Maria"]; function hasName() { for (let i=0; i <…
javascriptasked anderson 1