Test case details

Preparation Code

<script>   var str = "hello world!"; </script>

Test cases

Test #1

/world/.test(str);

Test #2

str.match(/world/);

Test #3

str.indexOf("world");