Message from JavaScript discussions

May 2019

— } is not closed properly is watits saying


[Running] node "d:\Code\JS\telegr.js"

ReferenceError: size is not defined

— Well.. then add a closing bracket at the end.

— Your syntax highlighting should help you find that out

— And if you properly indent everything, it should be also apparent

— Also, you can install quokkajs in vscode, which gives you live feedback:

— Where ? after the prog or b4 size()

— At the end of the file

— Compiled with no errors

— Good.

— Now do CTRL+SHIFT+P and > Format Document

— And see how your code actually should look like