- iOS 12 Programming for Beginners
- Craig Clayton
- 95字
- 2021-07-02 15:04:53
Concatenating strings
String concatenation is the result of combining multiple string literals to form an expression. So, let's create one by first entering two string literals:

Combining these two gives us a string concatenation. We can combine strings by using the + operator, add the following:
let full = firstName + lastName
When you look in the Results Panel, you will notice that there is no space between our first and last names.
Also, if we just put the variables in quotes, they will revert to simple string literals and will no longer be variables.
推薦閱讀
- Force.com Development Blueprints
- 物聯網概論(第2版)
- 物聯網+BIM:構建數字孿生的未來
- Wireshark網絡分析就這么簡單
- 2018網信發展報告
- 圖解手機元器件維修技巧
- Kong網關:入門、實戰與進階
- jQuery Mobile Web Development Essentials
- 工業互聯網創新實踐
- 深入理解OpenStack Neutron
- Getting Started with Memcached
- Implementing NetScaler VPX?
- 物聯網的機遇與利用
- 互聯網安全的40個智慧洞見(2016)
- Guide to NoSQL with Azure Cosmos DB