Swift: Hello World

Swift Hello World:

When learning a new language, it’s customary to have our first program print: Hello world!. Swift hello world can be printed in Swift in a single line:

print("Hello world!");

//Output: Hello world!

Inside the double quotes, everything will be printed to the terminal. A terminal is a window through which users can interact with a computer application. We use .swift extension for saving its code files.

Note: Don’t worry if you don’t understand something; the rest of the course will clarify everything introduced in this lesson.

Helpful Tools:

Here are some useful tools to help you along your journey!

Setting up an IDE (Integrated Development Environment) can be difficult for beginners. The Online Compiler will enable you to run your code inside your browser without the need to install an IDE. If you need a more detailed explanation of a specific topic, the best place to find answers is in the Official Documentation.

Scroll to Top
%d bloggers like this: