iOS Swift Basics An Introduction to Swift Programming Working With Variables

How to do this

How do you do the second part of this?

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

var = "Objective C"

2 Answers

Ryan Searle
Ryan Searle
10,605 Points

You've declared language as a variable so you just need to give that variable a new value like this

var language = "Swift"
language = "Objective-C"
Randell Purington
Randell Purington
9,992 Points

Hello, You are close,

the first one is correct, but for the second you are missing a small part. var language = "Swift" var Swift = "Objective-C"