(Swift for Beginners) Swift Comments In this article, you will learn about Swift comments, why and how to use them. A comment is a programmer-readable explanation or annotation in the source code of a program. It is ignored by the compiler when the code is compiled. Comments are intended for person reading the code to better understand …
Day: December 1, 2020
(Swift for Beginners) Swift Expressions, Statements and Code blocks In this article, you will learn about Swift expressions, statements and blocks. In the previous chapter, we used expressions, statements and blocks without explaining what it is although it’s used in every Swift program. After you know what variables, operators are it will be easier to …
(Swift for Beginners) Swift Basic Input and Output In this article, you will learn different ways to display output and get input in Swift. Swift Basic Output You can simply use print(_:separator:terminator:) function to send output to standard output (screen). See Swift function article to learn about functions in Swift. The function print(_:separator:terminator:) accepts three parameters. items: Items to print in the …