If you want to know, the replace method is case sensitive , and so, if you eval “delete” against “DELETE” the answer will be false, because they aren’t equals. You can use Regular Expressions as the others pals said.7 Eki 2021
Read moreIs string replace case-sensitive JavaScript?
JavaScript String Replace | Case Insensitive . The . replace function in JavaScript helps developers replace all the occurrences of a string in a text. However, many of us developers use this method in the wrong way while writing the code.18 Şub 2019
Read more