What will be the value of result after executing the following code snippet?
let str = 'Hello, World!';
let regex = /lo/;
let result = str.search(regex);
What will be the value of result after executing the following code snippet?
let str = 'Hello, World!';
let regex = /lo/;
let result = str.search(regex);