diff --git a/03-maxValue/index.js b/03-maxValue/index.js index e433b31..7849394 100644 --- a/03-maxValue/index.js +++ b/03-maxValue/index.js @@ -1,4 +1,12 @@ export function maxValue(values) { // implementar logica aqui + + let maxValor = Math.max(...values); + if (values == `${[]}`) { + return 0; + } else { + return maxValor; + } + -} \ No newline at end of file +}