Skip to content
Justice Tech School

Swift Get Started

Install Xcode on a Mac or the Swift toolchain on Linux and Windows. You can also try Swift in an online playground. Files end in .swift and run with swift file.swift.

Example
// Terminal:
//   swift hello.swift
print("Hello World")

Exercise

File extension.

hello.

Quiz Test

Which extension do Swift files use?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.