What will be the value of result after executing the following code snippet?
let str = 'OpenAI is awesome!';
let regex = /AI/;
let result = str.search(regex);
What will be the value of result after executing the following code snippet?
let str = 'OpenAI is awesome!';
let regex = /AI/;
let result = str.search(regex);