Answers for "typescript compare strings"

0

typescript compare strings

const s1: string = "foobar";
const s2: string = "foobar";
const s3: string = "foobar_";
console.log(s1 === s2); // true
console.log(s1 === s3); // false
Posted by: Guest on June-14-2021

Code answers related to "TypeScript"

Browse Popular Code Answers by Language