TObject: the root type of Pas2JS



This is an anatomy of a tiny Pas2JS application. See all classes inherit from a root type called TObject.
Pas2JS pascal source code
unit Unit1; interface uses SmartCL.System; type TApplication = class procedure RunApp; end; implementation { TApplication } procedure TApplication.RunApp; begin WriteLn('starting app'); end; end.