Of course, the semicolons. Neither assembly nor python use semicolons, so by my logic they must be identical too?
Control flow, method invocations, variables, arrays, boolean logic operators, and general syntax are similar enough that you can look at the JS code and figure out what it is doing.