check if 2 strings matches js

JavaScript
use "==":
example:
if("string" == "string") {
//This is yes
} else {
//This is no
}
Source

Also in JavaScript: