Change border color Javascript
<p>Hello im very new to HTML and Javascript.Im trying to create prompt where user able to input color they want the boarder to change its border color. can anyone help me with this problem please point out what i need and where.Thank you all who can and cant help .<br>
 Bellow is code i have so far </p>

<pre><code>&lt;script&gt;
    var getColor = prompt("Choose your color ", "Enter the  color ");
    var color;
    var el = document.getElementById("color");
   el.innerHTML = "Whatever paragraph message.";
    if (getColor == "Yellow" || getColor == "yellow" || getColor == "YELLOW") {
        color = "#FFFF66";
        el.style.borderColor = color;
    }
    else if (getColor == "Orange" || getColor == "orange" || getColor == "ORANGE") {
        color = "#FF9900";
        el.style.borderColor = color;
    }
    else if (getColor == "Purple" || getColor == "purple" || getColor == "PURPLE") {
        color = "#6600CC";
        el.style.borderColor = color;
    }
</code></pre>