

What does this program print?
Trace the program the way the computer would, then make your call before running anything.
function getProp<T, K extends keyof T>(obj: T, key: K) {
return obj[key];
}
console.log(getProp({ a: 1, b: "two" }, "b"));

Trace the program the way the computer would, then make your call before running anything.
function getProp<T, K extends keyof T>(obj: T, key: K) {
return obj[key];
}
console.log(getProp({ a: 1, b: "two" }, "b"));