0
What's the output of following code?
<html> <head> </head> <body> <script type="text/javascript"> var name= new Array(2); for(i=0;i<2;i++) { name[i]=prompt("enter your name",""); } document.write(name[0] + name[1]); </script> </body> </html>
2 Answers
0
But it shows undefined or two commas
It's not working properly
what's the error
- 1
whatever the user entered I'm your first and second spam box.