iOS Swift Basics Swift Types String Manipulation

Abdul Fawaz
Abdul Fawaz
115 Points

"Make sure the value you are assigning to greeting is an interpolated string" i have no idea on what this means

I have tried assigning them to interpolated string and but still says the same thing repeatedly.

strings.swift
// Enter your code below

let namlet name = "abdul"

let greeting = " Hi, there"

let interpolated =  " name: abdul , greeting: Hi, there";

2 Answers

Magnus Hållberg
Magnus Hållberg
12,590 Points

An interpolated string is a string that can also hold values from other strings or other compatible types. The syntax looks like this:

let myString = Hi
let myInterpolatedString = “\(myString) there
// this would print “Hi there”

I suggest you rewatch the videos, if missed this you probably missed other important things. Good luck

Abdul Fawaz
Abdul Fawaz
115 Points

thank you very much for your help Magnus, i appreciate your time.