0 votes
in JavaScript by

Which one of the following options is the correct output for the given code of JavaScript?

<script>  

functionprintprops(o)  

{  

for(var ain o)  

console.log(a+": "+ o[a]+"\n");  

}  

</script>  
 

a) Prints the contents of each property of o

b) Prints the address of elements

c) Prints only one property

d) Returns undefined

1 Answer

0 votes
by

Answer: D

Reason: The output of the above JavaScript code will be undefined.

Related questions

0 votes
asked Mar 22, 2021 in JavaScript by Robindeniel
0 votes
asked Mar 21, 2021 in JavaScript by rajeshsharma
...