What will be the output of the following code snippet?
let capitalizedString = 'hello world'.replace(/\b\w/g, char => char.toUpperCase());
console.log(capitalizedString);
What will be the output of the following code snippet?
let capitalizedString = 'hello world'.replace(/\b\w/g, char => char.toUpperCase());
console.log(capitalizedString);