What will be logged to the console by the match method?
const text = "hello world";
const pattern = /world/;
const result = text.match(pattern);
console.log(result);
- null
- [“world”, index: 6, input: “hello world”, groups: undefined]
- “world”
- true
0
voters