how to ignore case for the given string in javascript code example
Example: js ignore case
var str = "Visit W3Schools!";
var patt1 = /W3S/i;
var res = patt1.ignoreCase
var str = "Visit W3Schools!";
var patt1 = /W3S/i;
var res = patt1.ignoreCase