What does this program print?

from Codable
Swift 6.3.3 intermediate 2 min

What does this program print?

swift
import Foundation

struct Score: Decodable {
    var points = 0
}

do {
    _ = try JSONDecoder().decode(Score.self, from: Data("{}".utf8))
    print("default 0")
} catch DecodingError.keyNotFound(let key, _) {
    print("missing", key.stringValue)
}
Open in playground
Report an error