var x = "Test \'"
> undefined
var y = "Test '"
> undefined
x === y
> true
x
> "Test '"
https://i.stack.imgur.com/ZrHo5.jpg
Aha! Both of these strings are actually equal (as shown in the example code) - but why is that the case?
What causes this unexpected equality when escaping single quotes? Please explain.
Thanks in advance!