GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing www.geeksforgeeks.org — JavaScript Array includes() Method - GeeksforGeeks JavaScript Array includes() MethodLast Updated : 16 Jan, 2026 The includes() method in JavaScript is used to check whether an array contains a specific value. It returns a boolean result, making element checks simple and readable.
Syntax array.includes(searchElement, start);Parameters
Return Value :It returns a Boolean value i.e., either True or False. Example of JavaScript Array includes() MethodHere’s an example of the JavaScript Array.includes() method: [Example 1]: Searching for a number in an arrayIn this example, the includes() method checks if the number 2 is present in the array A.
[Example 2]: Searching for a string in an arrayIn this example, the includes() method checks if the string 'cat' is present in the array name. Since 'cat' is not in the array, it returns false.
Comment Explore |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |