freeCodeCamp/curriculum/challenges/arabic/08-coding-interview-prep/rosetta-code/vector-cross-product.arabic.md

64 lines
881 B
Markdown
Raw Normal View History

---
title: Vector cross product
id: 594810f028c0303b75339ad2
challengeType: 5
videoUrl: ''
localeTitle: ''
---
## Description
undefined
## Instructions
undefined
## Tests
<section id='tests'>
```yml
tests:
- text: ''
testString: 'assert.equal(typeof crossProduct, "function", "dotProduct must be a function");'
- text: ''
testString: 'assert.equal(crossProduct(), null, "dotProduct() must return null");'
- text: ''
testString: 'assert.deepEqual(res12, exp12, "crossProduct([1, 2, 3], [4, 5, 6]) must return [-3, 6, -3].");'
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function crossProduct() {
// Good luck!
}
```
</div>
### After Test
<div id='js-teardown'>
```js
console.info('after the test');
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
</section>