Code QuizBeginner

Parsing Unrequested JSON

Spot the mismatch between the prompt and how the response is parsed.

Codejavascript
const prompt = "List three popular fruits.";
const response = await callModel(prompt);

const fruits = JSON.parse(response);
console.log(fruits.length);

What is the bug here?