The triple script dialect superficially resembles JS. In fact, the dialect is specifically crafted so that the output of the trplkt compiler passes as syntactically valid by any compliant ECMA-262 parser.
But let it be a mantra for the work of the triplescripts.org group: This is not JavaScript.