Why my index == "string" is not working in JS?
<p>I have a problem with an equal statement in Javascript. Look at this screenshot:</p>

<p><img src="http://i.stack.imgur.com/cCLpA.png" alt="enter image description here"></p>

<p>I am trying to check whether index is the same as "Delete", but it is never true. It also is not true if I try <code>index === "Delete"</code> or <code>index == "Delete"</code>.</p>
