Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS Swift Basics An Introduction to Swift Programming Working With Variables

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
229,982 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

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

THANK YOU STEVE