📅  最后修改于: 2022-03-11 15:02:19.702000             🧑  作者: Mango
var name1 = "Taylor Johnson";
var name2 ="taylor johnson";
//convert to lowercase for case insensitive comparison
if(name1.toLowerCase() === name2.toLowerCase()){
//names are the same
}