🔥 3-day streak
GitHub Copilot157 / 190
Question 157 of 190

A developer wants Copilot to generate a function that validates that a string is a properly formatted international phone number. They open a new file and type the comment: `// validate input`. Copilot suggests a generic non-null string check instead of phone validation. Based on prompt engineering best practices, what is the MOST effective change to get the intended result?

Reviewed for accuracy · Report an issueNext question