Tsallaka zuwa abun ciki
Justice Tech School

Swift Syntax

Semicolons are optional. Blocks use curly braces and names are case sensitive. Comments use // and /* */.

Example
// a comment
print("Syntax") /* inline */

Exercise

Single line comment.

 note

Quiz Test

Are semicolons required in Swift?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.