<!DOCTYPE html>
<html>
<body>
<h1>JavaScript String Methods</h1>
<p>Search a string for "W3Schools", and display the position of the match:</p>
<p id="demo"></p>
<script>
let text = "Visit TECH I.S.";
let n = text.search("tech i.s.");
document.getElementById("demo").innerHTML = n;
</script>
</body>
</html>