What is the difference between confirm(" ") to confirm(' ')


#1

What is the difference between:
confirm('I feel awesome!')
&
confirm("I feel awesome!")

Why it is showing different results ?

Thanks,
Jr


#2

There is no difference

' ' and " " are both ways of passing a string..

One reason you might want to use one over the other is if you want to display a word in one of the quotes.

So for example
console.log("I want to use 'single quote' here") <- if you want to use single quotes in your string.
console.log('I want to use "double quote" here') <- if you want to use double quotes in your string.