iOS Swift Basics An Introduction to Swift Programming Working With Variables

Bernard Rodriguez
Bernard Rodriguez
1,194 Points

Bernard

I don't get the quiz can you guys please help me? if you guys could just give me some hints

variables.swift
// Enter your code below

var =str "language"

1 Answer

Steven Parker
Steven Parker
173,603 Points

The instructions say: Declare a variable named language and assign the string "Swift".

So some things to bear in mind:

  • in an assignment, the variable name goes on the left side of the "=" operator
  • the variable name should not be enclosed in quotes
  • the string to be assigned is not the same as the variable name
  • only the literal string will go on the right side of the operator
Bernard Rodriguez
Bernard Rodriguez
1,194 Points

I LOVE THIS PROGRAMING IT HELPS ME LEARN ABOUT PROGRAM THE BEST!!!!!!!!!!!!!!!!!!!!!YAYAYAYAYAYAYA!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!