Dot product

FCC link

Create a function, to compute the dot product, also known as the scalar product of two vectors.

Test

{{test}}

Console output