Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <title>Javascript Variable 2 Dean Beniqno XI RPL 2</title>
- </head>
- <body>
- <h1>Javascript Variables 2</h1>
- <p id="demo"></p>
- <script>
- var price1 = 5;
- var price2 = 6;
- var total = price1 + price2;
- document.getElementById('demo').innerHTML = "totalnya adalah :" + total;
- document.getElementById('demo').innerHTML = "totalnya adalah :" + total;
- </script>
- </body>
- </html>
Add Comment
Please, Sign In to add comment