Boolean Output in Swift

Level 111 keystrokes

Prints the Bool value true to the console.

Swift code

// true is a Bool literal; print shows it as: true
1print(true)

Output

true
Practice typing this code

Practice typing this code. Results are not recorded in the rankings.

Symbols in this code

The symbols you type in this Swift code and how often they appear.

  • (× 1
  • )× 1

More Swift examples at level 1

← Swift typing practice