 // JavaScript Olympics

// I paired [by myself, with:] on this challenge.

// This challenge took me [#] hours.


// Warm Up




// Bulk Up




// Jumble your words




// 2,4,6,8




// "We built this city"




// Reflection
// What JavaScript knowledge did you solidify in this challenge?
// What are constructor functions?
// How are constructors different from Ruby classes (in your research)?
@@ -47,16 +47,31 @@
 f, with:
+ Michael London
 %5D on thi
@@ -115,9 +115,9 @@
 me %5B
-#
+2
 %5D ho
@@ -135,19 +135,16 @@
 arm Up%0A%0A
-%0A%0A%0A
 // Bulk 
@@ -151,260 +151,2003 @@
 Up%0A%0A
-%0A%0A%0A// Jumble your words%0A%0A%0A%0A%0A// 2,4,6,8%0A%0A%0A%0A%0A// %22We built this city%22%0A%0A%0A%0A%0A// Reflection%0A// What JavaScript knowledge did you solidify in this challenge?%0A// What are constructor functions?%0A// How are constructors different from Ruby classes (in your research)?
+var sarah = %7B%0A  name: %22Sarah Hughes%22,%0A  event: %22Ladies' Singles%22,%0A%7D;%0A%0Afunction winner(athlete) %7B%0A  athlete.win = function() %7B%0A      console.log(athlete.name + %22 won the %22 + athlete.event);%0A  %7D;%0A%7D;%0Awinner(sarah);%0Asarah.win()%0A%0A// Jumble your words%0A%0Afunction reverseWord(words) %7B%0A console.log(words.split(%22%22).reverse().join(%22%22) );%0A%7D;%0AreverseWord(%22!sdrow ruoy elbmuJ%22);%0A%0A// 2,4,6,8%0Afunction evenNumber(number) %7B%0A  var evenNumbers=%5B%5D;%0A  for (var i=0; i%3Cnumber.length; i+=1) %7B%0A   if (number%5Bi%5D%252==0) %7B%0A     evenNumbers.push(number%5Bi%5D);%0A    %7D;%0A   %7D;%0A  console.log(evenNumbers);%0A%7D%0AevenNumber(%5B1,2,3,4,5,6,7,8,9,10%5D)%0A%0Afunction findNumbers(numbers) %7B%0A  return numbers%252==0;%0A%7D;%0A%0Afunction findEvenNumbers(numbers) %7B%0A  var evens =%5B%5D;%0A  evens=numbers.filter(findNumbers);%0A  console.log(evens);%0A%7D;%0A%0Avar numbers=%5B1,2,3,4,5,6,7,8,9,10%5D;%0AfindEvenNumbers(numbers);%0A%0A// %22We built this city%22%0A%0Afunction Athlete(name, age, sport, quote)%7B%0A    this.name = name;%0A    this.age = age;%0A    this.sport = sport;%0A    this.quote = quote;%0A%7D;%0A%0A//Driver test code%0Avar michaelPhelps = new Athlete(%22Michael Phelps%22, 29, %22swimming%22, %22It's medicinal I swear!%22)%0Aconsole.log(michaelPhelps.constructor === Athlete)%0Aconsole.log(michaelPhelps.name + %22 %22 + michaelPhelps.sport + %22 %22 + michaelPhelps.quote)%0A%0A// Reflection%0A// What JavaScript knowledge did you solidify in this challenge?%0A//Accessing object properties, manipulating arrays and strngs, %0A//using loops to iterate through arrays, and constructing%0A//objects using the constructor function.%0A%0A// What are constructor functions? A constructor function allows%0A// you to create a generic object so you can create instances of%0A//that object.%0A%0A// How are constructors different from Ruby classes (in your research)?%0A// Variables inside the constructor function are defined%0A//using %22.this%22. The scope of variables inside the constructor %0A//follows a different set of rules than instance variables in %0A//Ruby. Ruby classes has methods inside. The constructor contains%0A//variables and functions.

Add solution and reflection for pair challenge