Skip to content
Advertisement

Unexpected token, expected , (8:21)

So I’m working with this code for a blockchain mining class

JavaScript

And I keep getting this error Unexpected token, expected , (8:21), for this line:

JavaScript

Any help will be appreciated!

Advertisement

Answer

Try Using this

JavaScript

Seems to me like you key:value pairs are not properly formatted.. The code in probably taking

JavaScript

this above line as Key and is expecting a value from data

Advertisement