JavaScript Javascript how to use .includes() when you can hav random capital letters in a string

I need to make a program that gets user input string. How to check if a spesific words with .includes() that can have capital leters?

Answer:1

Easiest way is to get rid of the capital letters

inputString.toLowerCase().includes(str)

Otherwise you would need an alternative solution such as a regular expression.

Answer:2

I need to navigate between two view in React Native. But the problem is my component where the button to navigate is on an other component. I use the react-navigation. Let me show you : I have my ...

I need to navigate between two view in React Native. But the problem is my component where the button to navigate is on an other component. I use the react-navigation. Let me show you : I have my ...

  1. navigation component between activities
  2. android navigation component between activities

So this time I have a HTML table and when I click in a anchor that is located in a tag it opens a modal, where we can change a user password. But to update the password in the users table I need to ...

So this time I have a HTML table and when I click in a anchor that is located in a tag it opens a modal, where we can change a user password. But to update the password in the users table I need to ...

  1. html table modal
  2. html table inside modal
  3. html table in bootstrap modal

I have a few html pages that share the same navbar. Therefore I wrote one html file - topnav.html and I used the following jQuery code to load it into every page. javascript <script type="text/...

I have a few html pages that share the same navbar. Therefore I wrote one html file - topnav.html and I used the following jQuery code to load it into every page. javascript <script type="text/...

Within a redux saga I am sending a half dozen fetch requests to different systems. I want to wait until all those requests return, then do some final processing on the results. To this end I have an ...

Within a redux saga I am sending a half dozen fetch requests to different systems. I want to wait until all those requests return, then do some final processing on the results. To this end I have an ...