Skip to main content

Which Language? · #53 · 2026-05-27

Which language is this?

Difficulty 2/3

How to play

Read the code snippet and pick which of the four listed languages it’s written in. The snippet is deliberately unhighlighted — the syntax is the only clue. Press 1–4 or click to answer.

func greet(_ name: String?) {
    guard let n = name else { return }
    print("Hello, \(n)")
}

Loading your progress...

Press 1 through 4, or tap a numbered choice, to answer. Back to hub