Why does the following syntax show error? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why does the following syntax show error?

const player { pos: {x: 5, y: 5}, matrix: matrix, } Following along a video and this comes up. shows an error for me but not him.

19th Dec 2017, 6:02 PM
Black Frost
Black Frost - avatar
1 Answer
0
Cool. Thanks! Js errors are too sneaky, like mcgyver in a jungle with only a toothpick, rubberband, and a soccer ball named wilson💩💩
19th Dec 2017, 6:16 PM
Black Frost
Black Frost - avatar