Answers for "check string ifhas character in jquery"

0

check string ifhas character in jquery

<script>
function myFunction() {
  var str = "Hello world, welcome to the universe.";
  var n = str.includes("world");
  document.getElementById("demo").innerHTML = n;
}
</script>
Posted by: Guest on May-26-2021

Code answers related to "check string ifhas character in jquery"

Code answers related to "Javascript"

Browse Popular Code Answers by Language