--- title: Vector cross product id: 594810f028c0303b75339ad2 challengeType: 5 videoUrl: '' localeTitle: Producto cruzado vector --- ## Description
Un vector se define como que tiene tres dimensiones como se representa por una colección ordenada de tres números: (X, Y, Z).

Tarea:

 Write a function that takes two vectors (arrays) as input and computes their cross product. 

Su función debe devolver null en entradas no válidas (es decir, vectores de diferentes longitudes).

## Instructions
## Tests
```yml tests: - text: puntoEl producto debe ser una función testString: 'assert.equal(typeof crossProduct, "function", "dotProduct must be a function");' - text: dotProduct () debe devolver null testString: 'assert.equal(crossProduct(), null, "dotProduct() must return null");' - text: 'crossProduct ([1, 2, 3], [4, 5, 6]) debe devolver [-3, 6, -3].' testString: 'assert.deepEqual(res12, exp12, "crossProduct([1, 2, 3], [4, 5, 6]) must return [-3, 6, -3].");' ```
## Challenge Seed
```js function crossProduct() { // Good luck! } ```
### After Test
```js console.info('after the test'); ```
## Solution
```js // solution required ```