What next
Lesson from the WasmPascal in-browser Learn Pascal tutorial. Source: webpascal/index.html.
You now know enough to read every example in the Examples⦠dropdown. Good next moves:
hello_write.pasβ string / integer / float output.guess.pasβ a number-guessing game usingreadln, loops, and an RNG.fibonacci.pasβ recursion + a loop.shapes.pasβ ASCII art viawrite/writeln.gotoxy.pas,colors.pasβ cursor placement andTextColor.math.pasβ every math builtin.with_demo.pas,set_demo.pas,case_ranges_demo.pasβ thewithstatement, set operators, and range arms.ternary.pasβ Delphi-13-styleif cond then a else bexpressions.var_params_demo.pasβvarparameters by address:Swapon locals, plus var string/record/array params and@on a local.objects_demo.pas,classes_demo.pas,typed_const_demo.pasβ objects (value-type, virtual, inheritance,New), classes (reference-type, polymorphism, two-level), and typed const aggregates +Charin string ops (new in 0.5.0).web_dom.pasβ the DOM from Pascal withuses WEB: a styled panel, an animating canvas and pointer handlers, with none of the bridge boilerplate.basic_canvas.pasβ the pixel-buffer canvas ABI.pascalsweepandpascaloids.pasβ full games on the pascaldom / batchiness ABIs.
And remember: the fastest way to learn anything here is to take a working program, load it into the editor, press Run, then break it and watch the compiler's error messages point you at the offending line.