Understand a Correct AI-Assisted Change

In the last exercise, you named values and fixed a name that didn’t match. Now, let’s revisit what you’ve learned so far through a different lens, by reading and understanding a change from an AI assistant.

You may ask something like this:

Language: JavaScript
export function reportLine(feedback) {
  return feedback.message;
}

Please change this so that each line starts with the record’s ID, then the topic and the original message.

As a reply, you get an edited function:

Locked learning resources

Join us and get access to thousands of tutorials and a community of expert JavaScript developers.

Unlock This Lesson

Already a member? Sign-In

Locked learning resources

The full lesson is for members only. Join us and get access to thousands of tutorials and a community of expert JavaScript developers.

Unlock This Lesson

Already a member? Sign-In

Become a Member to join the conversation.