text: function my_string_index(haystack, needle) {
      var index = 0;
      
      while (index < haystack.length) {
          if (haystack[index] == needle) {
              return index;
          }
          index += 1;
      }
      return -1;
  }
  
  //console.log(my_string_index("hello", "l"));