pub or private
You will learn
What pub declares, and what the TypeScript backend writes with and without it.
pub in front of const, fn, struct or enum says other modules may use the name. Without pub the name is meant for the module itself. Today the compiler does not enforce this in the code it writes: gen-ts exports both the pub and the private constant of the lesson spec. Use pub to say what a module offers, and read the generated code before relying on privacy.