Results for “let”
Small, practical examples. Search by task or narrow things down below.
Provide a fallback for an unset custom property
CSS: The second var argument supplies a value when the custom property is unavailable.
CSS✓ Tested
Provide a list of selectable options
HTML: Learn how to provide a list of selectable options in a complete browser example.
HTML✓ Tested
Provide a skip link
Let keyboard users jump directly to focusable main content.
HTML✓ Tested
Push flex items to opposite ends
CSS: Space-between distributes free main-axis space between items.
CSS✓ Tested
Push one flex item away from its siblings
CSS: An auto inline-start margin consumes remaining main-axis space.
CSS✓ Tested
Query an ordered map’s key range
Query an ordered map’s key range in a complete Rust program using the standard library.
Rust✓ Tested
Queue values in a buffered channel
Queue values in a buffered channel using a complete Go program with explicit sample inputs.
Go✓ Tested
Range over a closed channel
Range over a closed channel using a complete Go program with explicit sample inputs.
Go✓ Tested
Rank tied scores with competition gaps
SQL: RANK leaves a gap after tied rows, unlike DENSE_RANK.
SQL✓ Tested
Rank tied scores with competition gaps
SQL Server: RANK leaves a gap after tied rows, unlike DENSE_RANK.
SQL Server✓ Tested
Rank tied scores with competition gaps
Postgres: RANK leaves a gap after tied rows, unlike DENSE_RANK.
Postgres✓ Tested
Rank tied scores with competition gaps
SQLite: RANK leaves a gap after tied rows, unlike DENSE_RANK.
SQLite✓ Tested