/**
 * Write a function that returns the largest element in a list.
 */
var List = function() {
  'use strict';

  function findLargest(list) {

  }

  return {
    findLargest: findLargest
  };
};
@@ -137,16 +137,155 @@
 list) %7B%0A
+  %09  var maxNum = Math.max.apply(Math, list);%0A  %09  if(list.length === 0)%7B%0A  %09  %09 throw('List cannot be empty.');%0A  %09  %7D%0A  %09  return maxNum;
 %0A  %7D%0A%0A  
@@ -329,8 +329,9 @@
 %0A  %7D;%0A%7D;
+%0A

Update largest.js