Score JavaScript if - else if
-- NO SCORE AVAILABLE --
const e=document.getElementById("score"),t=document.getElementById("result");e.addEventListener("blur",(function(r){const n=""===e.value?null:e.value;let u=null,a="border-gray";null===n?u="-- NO SCORE AVAILABLE --":n>=10?(u=`<b>${n}/20</b>: you passed the JavaScript course. Congratulations!`,a="border-green"):n>=8?(u=`<b>${n}/20</b>: you failed the JavaScript course, but you may tolerate it!`,a="border-blue"):(u=`<b>${n}/20</b>: unfortunately, you failed the JavaScript course. Better luck next time!`,a="border-red"),t.innerHTML=`<p>${u}</p>`,t.className="",t.classList.add(a)})),e.dispatchEvent(new Event("blur"));
//# sourceMappingURL=else_if.js.map