Sum All Primes: Change solution

Hi there! I think we need to add Solution 3 by adding in “let” next to the for statement. I’m not sure if it’s a for statement or function or what to call it… See below:

When I copied and paste Solution 3 from here – freeCodeCamp Challenge Guide: Sum All Primes into the lesson here –

It wouldn’t work.

So, I added let into the code (after the for, in front of the i)…

function sumPrimes(num) {
  function isPrime(number) {
    for (let i = 2; i <= number; i++)