JSFiddle - React, Tailwind, and code Playground
by cemsultan
JavaScript
var strVal = "1234"; // Zahl
var iVal = 1234; // String
if( strVal == iVal ) { // true, da Typkonvertiereung
console.log("Beide Werte sind gleich");
}
else {
console.log("Werte sind unterschiedlich")
}