Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let name = "Mike"
- //中身が変わるものは変数で宣言
- var age = 19
- var isStudent = true
- //----4年後、大学を卒業して社会人に----
- age = 23
- isStudent = false
- print(name)
- print(isStudent)
- // -> 23
- // -> false
- // name = "Ken"には変更できないので注意!
Add Comment
Please, Sign In to add comment