How to compare two strings in Node.js

1 Answer

0 votes
const str1 = "node.js";
const str2 = "node.js";
  
console.log(str1 === str2); 
    
      
      
/*
run:

true
      
*/
 
 

 



answered Mar 17 by avibootz
...