A

Admin • 670.22K Points
Coach

Q. What will the following Swift code print?

Code:
let name = "Swift"
print(name.lowercased())
  • (A) SWIFT
  • (B) swift
  • (C) Swift
  • (D) sWIFT
  • Correct Answer - Option(B)
  • Views: 1
  • Filed under category Swift (iOs)
  • Hashtags:

Explanation by: Admin
The `lowercased()` method converts all characters to lowercase.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.