Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width">
- <title>JS Bin</title>
- </head>
- <body>
- <script id="jsbin-javascript">
- var price = 15.00; // price of our hammer
- var money = 20.00; // how much money I have
- if (money >= price) {
- console.log("Buy the hammer")
- } else {
- console.log("Don't buy hammer")
- }
- </script>
- <script id="jsbin-source-javascript" type="text/javascript">var price = 15.00; // price of our hammer
- var money = 20.00; // how much money I have
- if (money >= price) {
- console.log("Buy the hammer")
- } else {
- console.log("Don't buy hammer")
- }</script></body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement