A
Q. Which one of the following options is the correct output for the given code of JavaScript?
Code:
<script>
functionprintprops(o)
{
for(var ain o)
console.log(a+": "+ o[a]+"
");
}
</script>
functionprintprops(o)
{
for(var ain o)
console.log(a+": "+ o[a]+"
");
}
</script>
- Correct Answer - Option(D)
- Views: 20
- Filed under category JavaScript
- Hashtags:
Discusssion
Login to discuss.