Is it Safe to Compare JavaScript Strings?

Is it Safe to Compare JavaScript Strings?