What does this expression return?
'aaa'.match(/a*/g)
- ['aaa', '']
- ['aaa']
- ['a', 'a', 'a']
- ['', 'aaa']
a* first consumes "aaa", then can still match the empty string at the end of the input.'aaa'.match(/a*/g)
a* first consumes "aaa", then can still match the empty string at the end of the input.