Explain how you define variables in Swift language?
Answer Posted / iosraj
Variables and constants must be declared before they are used. You announce constants with the let keyword and variables with the var keyword. Both variables and dictionaries are described using brackets. For example,
Var Guru99 = “This is Guru99”
Let ksomeconstant = 30
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is encapsulation in swift?
What is hashable in swift?
What are lazy stored properties, and how are they useful?
Is singleton thread safe swift?
What are structures in swift?
What is new features in swift 4.0?
What is nested function in swift?
How do I create a bridge header in swift 4?
In swift what is use of backticks while declaring a variable?
Do swift classes inherit from nsobject?
What is swift stand for?
What is race condition in swift?
What are the different control transfer statements used in swift?
What is subscript in swift?
What is the purpose of swift?