Here is my TypeScript function:
function more(argv: {a: number, b?: string}): number{
console.log( b)
return a
}
I am invoking the function this way:
let arc = more({a: 5})
Unexpectedly, I see 10
in the console. I was anticipating undefined
or an error message.
How is the number 10 being produced?