0
let a = "hello"
let b = "hello"
console.log(a === b)

returns true, but

let a = ["hello"]
let b = ["hello"]
console.log(a === b)

returns false. Why is this?

RNdev
  • 953
  • 1
  • 8
  • 26

0 Answers0