Javascript, Do While Loop multiple options
<p>Can you please explain and show the right answer:</p>

<pre><code>&lt;p id="show"&gt;&lt;/p&gt;

&lt;script&gt;

var a = "word1";
var b = "word2";

do {
    color = prompt("Write a word1 or word2 to get out of loop", "");
} while (color != a || color != b);

document.getElementById("show").innerHTML=color;

&lt;/script&gt;
</code></pre>

<p>It works when I delete 'b' option and leave as is only with 'a' option. So how can I use it for multiple options? Also, if you have a solution to keep it simple if I had 15 options for example, it will be great!</p>

<p>Thank you</p>
