Test case details

Preparation Code

<script>   var s = 'xhdhdfhdfhdfjfjfgjgf'; </script>

Test cases

Test #1

if (s.indexOf("x") === 0) {}

Test #2

if (s.charAt(0) === "x") {}

Test #3

if (s[0] === "x") {}