diff --git a/scripts.js b/scripts.js index bbbb844..6da77eb 100644 --- a/scripts.js +++ b/scripts.js @@ -2,7 +2,7 @@ var sprintFunctions = { largestEl: function(){ - // your code here + console.log(Math.max.apply(null, input)); }, reversed: function(){ diff --git a/scripts_spec.js b/scripts_spec.js index 9b9b19e..e188cb2 100644 --- a/scripts_spec.js +++ b/scripts_spec.js @@ -22,6 +22,7 @@ var tester = { var exp = 5; var actual = this.sprintObj.largestEl(input); this.results.largestEl = (actual == exp); + console.log(Math.max.apply(null, input)); },