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

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

#1

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?


#2

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.


#3

Thanks, didn’t see that…