- Notifications
You must be signed in to change notification settings - Fork6.7k
MD Pablo Fuentes - Mercedes#101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,22 @@ | ||
// Find the maximum | ||
function maxOfTwoNumbers (first, second) { | ||
if (first > second) { | ||
return first; | ||
} else { | ||
return second; | ||
} | ||
var largest = maxOfTwoNumbers(2, 6); | ||
console.log(largest); | ||
// Finding Longest Word | ||
function findLongestWord (words) { | ||
var max = ""; | ||
for (var i = 0 ; i < array.length; i++){ | ||
if (array[i].length > max.length){ | ||
max = array[i]; | ||
} | ||
} | ||
var words = [ | ||
"mystery", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Como dice nuestro Lead Teach Marc Pomar "Misterios No Existen En La Programación". Mucho animo!!! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Gracias! En qué sentido lo decís? Por cómo está hecho el código o porque lo continuemos? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Es una coña ¡Ja ja ja ja! Todo estupewonderful | ||