Programming practice

Least-squares slope — Chapter 7

Use centered sums for the slope.

Language: JavaScript

Student code

Feedback

Corrected code