What does this expression return when nothing matches?
'hello'.match(/xyz/)
- null
- []
- undefined
- false
String.prototype.match returns null (not an empty array) when there is no match.'hello'.match(/xyz/)
String.prototype.match returns null (not an empty array) when there is no match.