diff --git a/Super Sayajin I/Modulo 01/aula02/src/multiply.js b/Super Sayajin I/Modulo 01/aula02/src/multiply.js index 6554f29..bf159b1 100644 --- a/Super Sayajin I/Modulo 01/aula02/src/multiply.js +++ b/Super Sayajin I/Modulo 01/aula02/src/multiply.js @@ -1,7 +1,7 @@ const inverse = ( x ) => x * -1 const add = ( y ) => ( x ) => x + y -const subtract = ( y ) => ( x ) => add( inverse( y ) )( x ) +const subtract = ( y ) => ( x ) => add( y )( inverse( x ) ) const multiply = ( y ) => ( x ) => { // const multiply = ( x, y ) => { @@ -20,4 +20,4 @@ const multiply = ( y ) => ( x ) => { } // console.log('3 x 4 =', multiply( 3, 4 ) ) -console.log('3 x 4 =', multiply( 4 )( 3 ) ) \ No newline at end of file +console.log('3 x 4 =', multiply( 4 )( 3 ) )