Can you please explain and show the right answer:
<p id="show"></p>
<script>
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;
</script>
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!
Thank you