swift variable
// var variableName = stringOrInt
var number1 = 200
var brother = "John"
var player1Score = 597
swift variable
// var variableName = stringOrInt
var number1 = 200
var brother = "John"
var player1Score = 597
how to name a variable of a specific type in swift
var myString: String = "this is a string"
var myInt: Int = 123
var myDouble: Double = 3.1415 // 64-bit
var myFloat: Float = 3.14 // 32-bit
var myArray: [Int] = [3, 54, 12, 0] // can change to any other [type]
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us