Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width">
  6. <title>JS Bin</title>
  7. </head>
  8. <body>
  9.  
  10. <script id="jsbin-javascript">
  11. sayHello();
  12.  
  13. var total = 0;
  14.  
  15. var scorePoint = function () {
  16. total += 1;
  17. console.log(total);
  18. };
  19.  
  20. scorePoint();
  21. scorePoint();
  22. scorePoint();
  23. </script>
  24.  
  25.  
  26.  
  27. <script id="jsbin-source-javascript" type="text/javascript">sayHello();
  28.  
  29. var total = 0;
  30.  
  31. var scorePoint = function () {
  32. total += 1;
  33. console.log(total);
  34. };
  35.  
  36. scorePoint();
  37. scorePoint();
  38. scorePoint();</script></body>
  39. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement