iOS Swift Basics Swift Types Recap: Swift Types

qifeng sun
qifeng sun
6,274 Points

Not sure how to do the step 2

couldn't figure it out

// Enter your code below

let firstValue = 1
let secondValue = 2

let output = firstValue + secondValue

1 Answer

Royce Pollard
Royce Pollard
20,714 Points


You are almost there.

The challenge wants you to create a constant with the name "product." That should also help you with the math. You have a SUM calculation. PRODUCT is multiplication.

Lastly your "output" constant is correctly named, however, it should be a string that produces the challenge's sentence with values passed in using string interpolation. string interpolation......"This is (value) an example."

Hope this helps.