Complete the code to declare a constant named pi with the value 3.14.
let [1] = 3.14
var instead of let for constants.In Swift, let declares a constant. Here, pi is the constant name.
Complete the code to declare a constant maxScore with the integer value 100.
let [1] = 100
maxScore.var instead of let.The constant name should be maxScore as requested.
Fix the error by completing the code to declare a constant greeting with the value "Hello".
let [1] = "Hello"
let let greeting or var greeting instead of just the name.When declaring a constant, use let once, then the name. Here, only the name greeting goes after let.
Fill both blanks to declare a constant speedLimit with the value 60 and print it.
let [1] = 60 print([2])
var instead of let.The constant name is speedLimit. Use it both to declare and to print.
Fill all three blanks to declare constants width and height with values 10 and 20, then print their sum.
let [1] = 10 let [2] = 20 print([3] + [2])
length.Declare width and height constants, then print their sum using width + height.