+ 1
Javascript
<!DOCTYPE html> <html> <head> <title>Page Title</title> </head> <body> <script> var y=15/3; document.type(y); </script> </body> </html someone help find the error it displays 20 as the out put and shouldnt be so
3 odpowiedzi
+ 3
I think you have a typo in there. What do you expect document.type to do?
+ 1
document.write(y);
0
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<script>
var y=15/3;
document.write(y);
</script>
</body>
</html
try it