iOS Swift Basics An Introduction to Swift Programming Working With Variables

Nigel Matheson
PRO
Nigel Matheson
Pro Student 1,166 Points

The first stage of the course I am stuck as the var is not assigning to the str

my code is

var str = "swift" str="swift"

but its coming up error?

I don't know why.

variables.swift
// Enter your code below
var str= "Swift"
str="Swift"

2 Answers

Jeff McDivitt
Jeff McDivitt
23,970 Points

The task states to declare a variable name language not str

var language = "Swift"
language = "Objective-C"