Arrays
Array.includes()
Learn how to use Array.includes() in JavaScript.
Array.includes()
Documentation for Array.includes() in JavaScript.
Syntax
arr.includes("apple")
Example
// Practical usage
arr.includes("apple")
console.log("Executed successfully.");
Notes
JavaScript provides powerful built-in methods for the web.
Try It Yourself
You can run JavaScript directly in the BrowserCode Playground.