In javascript usually it considers a string into respective characters of array,so its easy to find a  character in a string.......


Example:
<script>
               var x="CRACKER";
               alert (x[0]);
</script>


This will alert C....................