Swift BasicsLesson 4Free preview
Swift Syntax
This lesson is part of Swift · All levels
Summary
This lesson reviews the basic syntax rules in Swift. Swift doesn't require semicolons at the end of the instruction line and has a very clean writing style. Developers will learn the writing of functions, variables, curly braces, and camelCase naming conventions that are standard in the Swift community.
Key points
- The semicolon (;) is optional at the end of the statement line
- The semicolon is only required if you write several statements in the same line
- The instruction block is flanked by curly braces '{' and '}'
- Standard variable naming and function using the lowerCamelCase convention
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.