今天做的加法计算器,献丑了`

Document ` 这是账单计算器` Document
<script>
    let now = prompt("现有多少钱")
    let ele = prompt("电费")
    let wat = prompt("水费")
    let play = prompt("娱乐")
    yue = now - ele - wat - play
    document.write(`<h1>您12月的账单如下</h1>
<table>
    <tr>
        <th>现有</th>
        <th>电费</th>
        <th>水费</th>
        <th>娱乐费</th>
        <th>余额</th>
    </tr>
    <tr>
        <td>${now}元</td>
        <td>${ele}元</td>
        <td>${wat}元</td>
        <td>${play}元</td>
        <td>${yue}元</td>
    </tr>
</table>`)
</script>
` 这是今天的数据交换练习` Document `

更多推荐

今天是在黑马程序员学习js的第一天,向大佬冲击!!!!!!!