This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//1. Write a function average that takes two numbers as input (parameters), and returns the average of those numbers. | |
function average(num1, num2) { // Good Job! | |
return (num1 + num2) / 2; | |
} | |
//2. Write a function greeter that takes a name as an argument and greets that name by returning something along the lines of "Hello, <name>!" | |
function greeting(name) { // Good Job! | |
console.log('Hello ' + name + '!'); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*Write a function average that takes two numbers as input (parameters), | |
and returns the average of those numbers.*/ | |
function average(num1, num2) { // Good Job! | |
return (num1 + num2) / 2; | |
} | |
/*Write a function greeter that takes a name as an argument and greets | |
that name by returning something along the lines of "Hello, <name>!"*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
W2D2 Checkpoint | |
function average(x,y) { // Good Job!, try and keep your spacing and formating consistent | |
return (x+y)/ 2; | |
} | |
function greeter(name) { // Good Job! | |
return 'Hello, '+ name; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# W2D2 Checkpoint | |
Submit a link to your gist [here](https://goo.gl/forms/HywFjkNIU9mLM7c03) | |
1. Write a function `average` that takes two numbers as input (parameters), and | |
returns the average of those numbers. | |
function average (num1, num2) {// Good Job! | |
return ((num1 + num2) / 2) // do we need the wrapping parens? | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
Noah Loring | |
*/ | |
// #1 | |
function average (num1, num2) { // Good Job! | |
return (num1 + num2)/2; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Daniel Kim W2D2 checkPoint | |
1. | |
function average (x,y) {// good job | |
return (x+y)/2; | |
} | |
2. | |
function greeter (name) {// good job |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 1. Write a function average that takes two numbers as input (parameters), and returns the average of those numbers. */ | |
var average = function(x , y){ // Good Job! | |
return (x+y)/2; // Try and keep your spacing consistant. | |
}; | |
/* 2. Write a function greeter that takes a name as an argument and greets that name by returning something along the lines of "Hello, <name>!" */ | |
var greeter = function(name){ // Good Job! | |
return "Hello, " + name + "!"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# W2D2 Checkpoint | |
Submit a link to your gist [here](https://goo.gl/forms/HywFjkNIU9mLM7c03) | |
1. Write a function `average` that takes two numbers as input (parameters), and | |
returns the average of those numbers. | |
function average(num1,num2){ // Good Job! | |
return (num1 + num2) / 2; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
EJ Mason | |
August 23, 2016 | |
Week 2 | |
---------------------------------------------------------------------------------- | |
W2D2 Checkpoint | |
---------------------------------------------------------------------------------- | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Day 2</title> | |
</head> | |
<body> | |
<script type="text/javascript"> | |
var name = "Rex Kelly"; |
NewerOlder