https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures-v8/learn-functional-programming-by-building-a-spreadsheet/step-23
instructions
“Now declare a length variable and assign it the length of your sorted array, and a middle variable that has the value of the length divided by 2, subtracted by 1.” const median = nums => { const sorted = nums.slice().sort((a, b) => a - b); const length = sorted.length; const middle = (length / 2) - 1; }
Error message: “You should assign middle the value of dividing your length variable by 2. You should subtract 1 from your length / 2 calculation.”
Parenthesis is not needed around length / 2. This is a bit strict on the test side. Would you be interested in making issue on github for this problem? Sign in to GitHub · GitHub
hi Sanity, thank you for your response. yes I can create an issue on github for this.
Is there a specific repo within freeCodeCamp profile I need to raise this?