if (customer === "new") {
//run code
} else {
}
When I run this condition it run my code while actually I have string value in customer "customername" and comparing with sring "new" which is not equal as ("customername" != "new") it should not run the code while comparing.
I found to using === equal will check type if type is same it will pass true so == is the option to check the value but I am facing erro on using ==.
Expected '===' and instead saw '==' eqeqeq