Guest User

Untitled

a guest
Jan 18th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 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. //write your answers below
  12.  
  13. var sayHello = function (name) {
  14. return "Hello, " + name;
  15. }
  16.  
  17. sayHello("Bill");
  18.  
  19. var areBothEven = function (num1, num2) {
  20. if (num1%2 === 0 && num2%2 ===0) {
  21. return true;
  22. }
  23. return false;
  24. }
  25.  
  26. var hotOrNot = function (temp) {
  27. if (temp >= 70) {
  28. return "Hot!";
  29. }
  30. return "Not Hot";
  31. }
  32. </script>
  33.  
  34.  
  35.  
  36. <script id="jsbin-source-javascript" type="text/javascript">//write your answers below
  37.  
  38. var sayHello = function (name) {
  39. return "Hello, " + name;
  40. }
  41.  
  42. sayHello("Bill");
  43.  
  44. var areBothEven = function (num1, num2) {
  45. if (num1%2 === 0 && num2%2 ===0) {
  46. return true;
  47. }
  48. return false;
  49. }
  50.  
  51. var hotOrNot = function (temp) {
  52. if (temp >= 70) {
  53. return "Hot!";
  54. }
  55. return "Not Hot";
  56. }
  57. </script></body>
  58. </html>
Add Comment
Please, Sign In to add comment