See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope> is optional
| export function find_total( my_numbers ) { | |
| //Insert your code here | |
| let score = 0 | |
| my_numbers.forEach((x)=>{ | |
| if(x%2==0){ | |
| score = score + 1 | |
| }else if(x % 2 != 0 && x !== 5){ | |
| score = score + 3 | |
| }else{ |
| // fizz buzz | |
| for (a=1 ; a < 101 ; a ++){ | |
| a % 15 == 0 | |
| ? console.log('fizzBuzz') | |
| : a % 3 === 0 | |
| ? console.log('fizz') | |
| : a % 5 === 0 | |
| ? console.log('Buzz') | |
| : console.log(a) | |
| } |