July 23, 2022, 4:08 p.m. | Tammy Vo

DEV Community dev.to

100 days of Swift - Day 1 - Simple Types


Variables:


To create a new variable we need to use "var" to initialize and define.



var operatingSystem = "macOS"


Strings and Integers:


Swift is type safe.

Strings and Integers can not be mixed.

If there are larger numbers, we can use underscores as thousand separators making it easier to read.



var str = "Hello"
var age = 25
var population = 8_000_000


Multi-line String:

Start and end with three double …

ios swift womenintech

SOC 2 Manager, Audit and Certification

@ Deloitte | US and CA Multiple Locations

Information Security Engineers

@ D. E. Shaw Research | New York City

Technology Transfer GMP Compliance Officer

@ Pharmathen | Sapes, East Macedonia and Thrace, Greece

Security Cyber Consultant DRC (m/w/d)

@ Atos | Berlin, DE, D-13353

Penetration Tester - InfoSec

@ Rapid7 | NIS Belfast

Cyber Vulnerability Lead

@ Under Armour | Remote, US