Simple JavaScript class representing a vector in n-dimensional space.
It has one parameter: Number[] representing dimensions, three methods: plus and minus (which take another vector as a parameter and return a new vector that has the sum or difference of the two vectors) and times methods; a property length that computes the distance of the point from the origin (0)^n, where n means number of dimensions.
If you provide just one number, e.g.:
let v1 = new Vector(11)
// OR
let v1 = new Vector([11])
Than the vector is suppose to represent 1-dimensional space. Providing more arguments (n) will mean n-dimensional space.