我被困在一個模塊化的JS從宿舍到便士轉換,這裏是我到目前爲止。我錯過了什麼?從宿舍轉換成便士
<html>
<head>
<title>Bicycle</title>
<script type="text/javascript">
//Program: Problem 5
//Purpose: calculate the number of quarters a person will get in return when they enter the number of pennies they have
//Author: Zach
//Date last modified: 2/9/12
var entrmoney = ""
var totnum = "The total number of quarters needed is "
var totcents = "left over"
entrmoney = prompt("How much money do you want to turn into Quarters,enter in pennies?")
document.write(totnum + + totcents)
</script>
</head>
<body>
</body>
</html>
有什麼問題,有什麼不行? – 2012-02-09 15:25:23
我沒有看到任何計算正在進行? – 2012-02-09 15:26:13
我不確定它需要的計算。 – user1199777 2012-02-09 15:28:05