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 String includes() Method - GeeksforGeeks JavaScript String includes() MethodLast Updated : 1 Jun, 2026 The includes() method is used to check whether a string contains a specific value. It returns a boolean result based on whether the text is found or not.
Syntax:string.includes(searchvalue, start)Parameters:The includes() method accepts parameters that control how the search is performed. These parameters define what to search for and where to start searching.
Return Value:The includes() method provides a simple true or false result. This result tells whether the given value exists in the string.
Example 1: The code checks whether "Geeks" exists in "Welcome to GeeksforGeeks." and logs true because the substring is found.
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. |