String object-> judge whether they are equal

1. Definition and usage

  == equal values

  === Absolutely equal (value and type are equal)

  Examples:

var str = '8'
 var str1 = 8 
console.log (str == str1) 
console.log (str === str1)

  Output:

Guess you like

Origin www.cnblogs.com/abner-pan/p/12700962.html