I need to calculate curtain prices dependant on width and height from a price matrix. How could one calculate from an array instead of the if statements?
I'm in an introductory JavaScript course, and very recently began learning about matrices. I was assigned a problem to solve, but am having a difficult time continuing. From a matrix, I ...
which part of the question belongs that code to? I cant make any sense of what is written there. 1) is it up to you how to fill the matrix (random values, ) ? 2) Array.concat() comes in handy, but at least one for() loop will be required. 3) look up array sorting in your favourite reference work. 4) quite as ...