Swift is a powerful and intuitive programming language for macOS, iOS, watchOS, tvOS, and Linux. It was created by Apple and is now an open source language. Swift is designed to work with Apple’s Cocoa and Cocoa Touch frameworks and the large body of existing Objective-C code written for Apple products.

Example:

func helloWorld() {
print(“Hello, world!”)
}

helloWorld() // prints “Hello, world!

Leave a Reply

Your email address will not be published. Required fields are marked *