Find a string

Report a typo

What will the output of the following program be?

let textData = "I have got a date at a quarter to eight; I'll see you at the gate, so don’t be late";
let position = textData.search(/['’]/);

console.log(position);
Enter a number
___

Create a free account to access the full topic