diff --git a/03-maxValue/index.js b/03-maxValue/index.js index e433b31..d1597d1 100644 --- a/03-maxValue/index.js +++ b/03-maxValue/index.js @@ -1,4 +1,6 @@ export function maxValue(values) { // implementar logica aqui - -} \ No newline at end of file + if( values == 0) + return 0 + return Math.max (...values ) +}