Which programming language is this?
class Cache<K, V> {
private store = new Map<K, V>();
get(key: K): V | undefined {
return this.store.get(key);
}
}
Answer: TypeScript
A generic class
Play Programming Languages ▸
Cache<K, V> with a private field and a V | undefined return type is TypeScript.