title: Get characters index in string
body: <p>I want to achieve something like this:</p>
  <p>if array [ &quot;a&quot;, &quot;b&quot;, &quot;c&quot;] includes any of the characters of const word = &quot;abracadabra&quot; give me that character and its position in const word</p>
  <p>I have tried something like this:</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>const word = "abracadabra";
  const input = ["a", "b", "c"];
  for (let i = 0; i&lt; word.length; i++) {
    if (input.includes(word(i))) {
    console.log(i + (word(i)));
    }
  }</code></pre>
  </div>
  </div>
  </p>
  <p>But that doesnt work, Can somebody help me with the logic and or syntax?
  I am new to coding, thank you for your time and effort!</p>