Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

string equals javascript

// The === and == operators evaluate whether one value is equal to another
// == will also checks if the values are equal after one of the values is converted into another type
console.log("string" === "string"); // -> true
console.log(1 === 1); // -> true
console.log(1 === "1"); // -> false
console.log(1 == "1"); // -> true
console.log("String" === "string"); // -> false
console.log("String" == "string"); // -> false
 
PREVIOUS NEXT
Tagged: #string #equals #javascript
ADD COMMENT
Topic
Name
5+5 =