Start learning free

LESSON 7 OF 415 · WELCOME TO SWIFT

Strings vs Numbers in Swift

Lesson

  • Swift distinguishes between numbers and strings!


  • In Swift, "15" (with quotes) is considered a String, while 15 (without quotes) is considered an Int (a number).


  • For example, computers can perform mathematical operations on numbers, but not on strings. More on this in the next lessons.

STEP 1 OF 1
    Ctrl + Enter to check