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">
- //write your answers below
- var sayHello = function (name) {
- return "Hello, " + name;
- }
- sayHello("Bill");
- var areBothEven = function (num1, num2) {
- if (num1%2 === 0 && num2%2 ===0) {
- return true;
- }
- return false;
- }
- var hotOrNot = function (temp) {
- if (temp >= 70) {
- return "Hot!";
- }
- return "Not Hot";
- }
- </script>
- <script id="jsbin-source-javascript" type="text/javascript">//write your answers below
- var sayHello = function (name) {
- return "Hello, " + name;
- }
- sayHello("Bill");
- var areBothEven = function (num1, num2) {
- if (num1%2 === 0 && num2%2 ===0) {
- return true;
- }
- return false;
- }
- var hotOrNot = function (temp) {
- if (temp >= 70) {
- return "Hot!";
- }
- return "Not Hot";
- }
- </script></body>
- </html>
Add Comment
Please, Sign In to add comment