iOS Swift Basics An Introduction to Swift Programming Working With Constants

What is a constant

What is a constant

// Enter your code below

2 Answers

Jason Anders
Jason Anders
Treehouse Moderator 145,138 Points

HI Andres

I strongly recommend going over and reviewing the video that introduces and explains what a constant is and how it is used. It is a long video and does cover it in great detail. After reviewing, I'm sure you'll be able to complete the challenge.

:) :dizzy:

A constant is a variable with an unchangeable value. Its value is fixed. It's better to use constants when possible, because it ensures that you won't accidentally modify the value contained, but more often you use variables, which have a changeable value.