Learning IOS

When learning to code you are first introduced to variables. A variable is like a box that you can put things into. With programming we want to store values in this box. There are different types of values that we may store in this box.



We can have different types of values that we may want to place in this box. For example we may have:


  • Strings - this is a sequence of characters enclosed by quotation marks
  • Integers - this can be positive or negative whole number
  • Doubles - this is a number which has a decimal
  • Booleans - booleans have two values - true or false

Strings, Integers, Doubles and Booleans are called data types.

No comments:

Post a Comment