iOS Swift Basics An Introduction to Swift Programming Working With Constants

Kellington Chidza
Kellington Chidza
318 Points

Create a constant named favoriteDessert and assign to it a string containing your favorite dessert. Remember the syntax

I HAVING PROBLEMS ON THIS CHALLENGE

constants.swift
// Enter your code below
let str = "favoritedessert"

1 Answer

KRIS NIKOLAISEN
PRO
KRIS NIKOLAISEN
Pro Student 49,714 Points
let str = "favoritedessert"

With the code above your constant is named str and has been assigned a value of "favoritedessert". Instead of str you want a constant named favoriteDessert. Instead of "favoritedessert" assign your favorite dessert in quotes.