Skip to content

Commit

Permalink
added daily codewar
Browse files Browse the repository at this point in the history
  • Loading branch information
CoriRen committed Sep 3, 2024
1 parent 9e025a3 commit b3eb572
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion codewars.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,8 @@ function DNA(dna) {
/*Sum Mixed Array:
add together an array of strings and numbers*/

let sumMix = (x) => x.map((num) => +num).reduce((sum,acc)=>sum+acc,0)
let sumMix = (x) => x.map((num) => +num).reduce((sum,acc)=>sum+acc,0)


//Function 2 - squaring an argument
let square = (num)=>num**2

0 comments on commit b3eb572

Please sign in to comment.