DEV Community

Cover image for Learn With me:Apple's Swift
Hello World
Ansh Gupta
Ansh Gupta

Posted on • Updated on

Learn With me:Apple's Swift Hello World

Hi guys, I'm Ansh and today in this tutorial we are going to learn Swift which is a powerful and initutive programming language by Apple.It's used to create apps for iOS,MacOS,watchOS and so on.Swift's code is concise yet easy to understand and write.
So tighten your seat belts and get ready to take-off .

𝗛𝗲𝗹𝗹𝗼 π—ͺ𝗼𝗿𝗹𝗱
So keeping the tradition in mind we are going to start with our Hello World in Swift and here it's

// Swift "Hello, World!" Program

print("Hello, World!") 
Enter fullscreen mode Exit fullscreen mode

and this will result into

Hello,World!
Enter fullscreen mode Exit fullscreen mode

The code above displays the text Hello, World! on your screen.

Congratulations! You just wrote your first program in Swift.

In next part we'll learn about variables, constants, and literals in Swift.

Top comments (0)