Linear Algebra, JavaScript, Algorithms, Mathematics.
subtraction are performed component-wise and matrices must have the same dimensions to be added or subtracted. To not repeat the same code in addition and subtraction we first write a method that receives operation, function that will do something with two components and another matrix. Then we can