What will be the output of the console.log statement in the following code snippet?
let str = 'Hello, World!';
let regex = /l/g;
console.log(str.replace(regex, 'X'));
What will be the output of the console.log statement in the following code snippet?
let str = 'Hello, World!';
let regex = /l/g;
console.log(str.replace(regex, 'X'));