Sum All Odd Fibonacci Numbers(Help to make code clean)

Tell us what’s happening:
Hey guys,
After scratching my head for almost a day, I found the solution to this one but my code is a mess.
Need suggestions on how can i clean this up.
Each and every feedback is appreciated.
Thank You

Your code so far



function sumFibs(num) {
  var newArr = [1,1];
  for(let i=2;i<num;i++){
	newArr[i] = newArr[i-1] + newArr[i-2];
	}
  var filteredArr = newArr.filter((x) => x%2 !== 0);
	var sum =0;
	for(let j=filteredArr.length;j>=0;j--){
		if(filteredArr[j] <= num){
		sum += filteredArr[j];
		}
	}
  return sum;
}
sumFibs(4);

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/sum-all-odd-fibonacci-numbers

Thank you so much for your feedback and explanation.
@camperextraordinaire
One thing i really face issues with is reduce().
Could you explain that a little or suggest some resources for further reading??

I get the ternary operators.
It’s the reduce that i do not get even though i have solved challenges related to it.
Initially i had issues with map() and filter() as well but i got hang of them. However i just, am not able to comprehend reduce().

Thanks again @camperextraordinaire.
I will try to read from other resources as well and i will have to solve a few algorithms as well usign this to get hang of it.