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
- function sayHello(name) {
- return ('Hello, ' + name);
- }
- console.log(sayHello("Bill Jeffy"))
- /**/
- function areBothEven(num1,num2) {
- if (num1%2 === num2%2 && num1%2 === 0) {
- return true;
- }
- return false;
- }
- console.log(areBothEven(2,10));
- /**/
- function hotOrNot(temp) {
- if (temp >= 70) {
- var cel = ((temp * 0.08) + 32);
- return ('Hot! ' + cel + ' Celcius.'); //celcius
- } else {
- return ('Not so hot!')
- }
- }
- console.log(hotOrNot(30));
- </script>
- <script id="jsbin-source-javascript" type="text/javascript">//write your answers below
- function sayHello(name) {
- return ('Hello, ' + name);
- }
- console.log(sayHello("Bill Jeffy"))
- /**/
- function areBothEven(num1,num2) {
- if (num1%2 === num2%2 && num1%2 === 0) {
- return true;
- }
- return false;
- }
- console.log(areBothEven(2,10));
- /**/
- function hotOrNot(temp) {
- if (temp >= 70) {
- var cel = ((temp * 0.08) + 32);
- return ('Hot! ' + cel + ' Celcius.'); //celcius
- } else {
- return ('Not so hot!')
- }
- }
- console.log(hotOrNot(30));</script></body>
- </html>
Add Comment
Please, Sign In to add comment