I am testing my application for security purpose and while doing that I came across this scenario:
<script>
function myFunction() {
alert`"Hello\nHow are you?"`;
}
</script>
Results in pop-up with message Hello How are you?
<script>
function myFunction() {
alert("Hello\nHow are you?");
}
</script>
Results in pop-up with message Hello How are you?
Why these two scripts producing same result?
Use this link for testing: http://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_alert2