The include() method in JavaScript returns a boolean value true or false if it contains the desired value. The include() method is case sensitive i.e., it will treat uppercase characters and lowercase characters differently.
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy.
The include() method in JavaScript returns a boolean value true or false if it contains the desired value. The include() method is case sensitive i.e., it will treat uppercase characters and lowercase characters differently.
Let's understand it with the help of an example :
Hope this code will be helpful for you.
Happy Coding!