Let cat = "kitty"; print(cat)
// Prints "kitty"

Additional information

  • Swift doesn’t require you to write a semicolon (;) after each statement in your code, although you can do so if you wish.
  • Are required if you want to write multiple separate statements on a single line.

Related concepts


Semicolons — Structure map

Clickable & Draggable!

Semicolons — Related pages: