Array.prototype.toStringintermediateconst arr = [1, 2, 3]
arr.toString() // β '1,2,3'
arr.join(',') // β '1,2,3' (equivalent)toString() is equivalent to join(',') β use join() when you need a different separator.
arr.toString() produces the exact same result as arr.join(','). This is a useful equivalence to know when choosing between the two.
Implement verifyToString which returns true if arr.toString() strictly equals arr.join(',').