check for a value in array javascript

Check for a value in array javascript

To check for a value in an array in javascript using the below code snippet:-

const fruit = ["Orange", "Banana", "Apple", "Mango"];
fruit.includes("Mango");
Post Created 99

Leave a Reply

Related Posts

Begin typing your search above and press enter to search. Press ESC to cancel.

Back To Top