Answers for Swift Online Test - Set 8
←Go Back to Online Practice TestQues. What is the syntax for declaring a constant in Swift? |
Option 1. let myConstant = 10 |
Option 2. var myConstant = 10 |
Option 3. const myConstant = 10 |
Option 4. constant myConstant = 10 |
Ans. Option 1 |
Please provide the reason below. The best provided reason will be displayed with your name(if you are logged-in) on website. |
Enter Reason |
Is it helpful?
Yes
No