You need to upload the code in the right side of the ide, it appears you are entering the code on the left.
@Wilberforce started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
You need to upload the code in the right side of the ide, it appears you are entering the code on the left.