What’s wrong with my code?
To understand more, click the challenge’s link below
function convertHTML(String) {
switch(String) {
case "Dolce & Gabbana":
console.log("Dolce & Gabbana");
break;
case "Hamburgers < Pizza < Tacos":
console.log("Hamburgers < Pizza < Tacos");
break;
case "Sixty > twelve":
console.log("Sixty > twelve");
break;
case 'Stuff in "quotation marks"':
console.log("Stuff in "quotation marks"");
break;
case "Schindler's List":
console.log("Schindler's List");
break;
case "<>":
console.log("<>");
break;
case "abc":
console.log("abc");
}
}
convertHTML("Dolce & Gabbana");
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Safari/605.1.15
Challenge Information:
Intermediate Algorithm Scripting - Convert HTML Entities