Accessing Nested Objects in JSON: "expected an assignment or function call and instead saw an expression"

So, my code does pass the test, but I get this error:

Why? Have I done something wrong or is it a bug with editor?

It’s an extra line. the second line is actually the answer. just completely delete the line with the error and you will be good to go.

1 Like

Thanks, didn’t see that…

1 Like