how to compare strings javascript

JavaScript
x == y

Source

Also in JavaScript: