Prev Demo
JavaScript
>
Ignorecase Property
Next Demo
Write code here
J
|
B
|
A
<!DOCTYPE html> <html> <head> <title>Demo</title> </head> <body> <h1>Ignore case property</h1> <p>Click the below button to find whether "i" modifier is set or not.</p> <input type="button" value="Search" onclick="testFunction()"/> <p id="myId"></p> <script> function testFunction() { var a = "TechFunda Provides lot technology " var b = /lot/i; var r = b.ignoreCase; document.getElementById("myId").innerHTML = r; } </script> </body> </html>
Note: We DO NOT save your trial code in our database.
Output