⌘K
Mainnet docs are version-pinned. Check each section's exact version in the sidebar; it can lag the newest upstream release.
A script, in Sway, is runnable bytecode on the chain which executes once to perform some task. A script can return a single value of any type.
Learn more about scripts here Icon Link.