/TypeScript/Function printprops(o) { for(var p in o) console.log(p + ": " + o[p] + "\n"); } What will the above code snippet result ? Prints the contents of each property of o Returns undefined Both a and b None of the mentioned

Function printprops(o) { for(var p in o) console.log(p + ": " + o[p] + "\n"); } What will the above code snippet result ? Prints the contents of each property of o Returns undefined Both a and b None of the mentioned

Function printprops(o) { for(var p in o) console.log(p + ": " + o[p] + "\n"); } What will the above code snippet result ? Prints the contents of each property of o Returns undefined Both a and b None of the mentioned

0
ShareSimilar codes
Share