Skip to content

Instantly share code, notes, and snippets.

View A86S's full-sized avatar
🏠
Working from home

A86S A86S

🏠
Working from home
  • Freelancer
  • India
View GitHub Profile
@A86S
A86S / LearnSwift.swift
Last active August 2, 2022 12:48
Swift Basics
// variable and constant
var a = 10 // variable can be updated later
let PI = 3.14 // can not modify later
// Data types (Int, Float, Bool, Double, String) or Type Annotations
var age: Int = 10
var name:String = "John"
var radius: Float = 2.5
var area: Double = 14.50
var isAlive: Bool = false