I'm learning about switches in Javascript, and whenever I add a case, I'm not sure whether to use single quotation marks or double quotation marks.
switch(answer)
{
case 'hello':
console.log("Hello there!");
break;
}
vs
switch(answer)
{
case "hello":
console.log("Hello there!");
break;
}
Note that in the line with the case, I put double quotation marks instead of single quotation marks on the second example. Which one is correct?