Jump to content


  • Content count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About mbpowner

  • Rank
  1. javascript code does not show result

    Yh whoops, that's what I meant LOL. My bad. Just bcuz I code in java normally so it's easy to get carried away with the language and forget the syntax for the specific language. And that for loop was written in a bit of a rush. My apologies also just realized. There should be no int in the parameter of the function
  2. javascript code does not show result

    Values arent being returned unless n is less than 2. Also, I'm not sure I think this is the best way to approach it: This is because is a number is divisible by any even number, it's definitely divisible by 2. Just a suggestion on improving the efficiency.