What will the following code output?
const regex = /\d+/g; console.log("abc123xyz456".match(regex));
["123", "456"]
[123, 456]
["abc", "xyz"]
Error
This question is part of this quiz :