“Hello, World!” in Swift
![“Hello, World!” in Swift](/content/images/size/w2000/2022/07/Green-and-White-Illustration-Science-Class-Education-Presentation--28-.jpg)
When you start learning a new programming language, the most straightforward application you can write in any language is the "Hello, World!" application.
Swift code is written plaint text files with a .swift
file extension
// Swift "Hello, World!"
print("Hello, World!")
Output
Hello, World!
as you might guess from the code above. print
is a function that takes a text and prints it to the console.
you can use the Playground app or even you can learn Swift online here
![](https://mobiledevtutorials.com/content/images/2022/07/Screenshot-2022-07-02-at-23.06.21-1.jpg)