-
Notifications
You must be signed in to change notification settings - Fork 9.7k
/
simple-chain.js
32 lines (30 loc) · 879 Bytes
/
simple-chain.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
const { NotImplementedError } = require('../extensions/index.js');
/**
* Implement chainMaker object according to task description
*
*/
const chainMaker = {
getLength() {
throw new NotImplementedError('Not implemented');
// remove line with error and write your code here
},
addLink(/* value */) {
throw new NotImplementedError('Not implemented');
// remove line with error and write your code here
},
removeLink(/* position */) {
throw new NotImplementedError('Not implemented');
// remove line with error and write your code here
},
reverseChain() {
throw new NotImplementedError('Not implemented');
// remove line with error and write your code here
},
finishChain() {
throw new NotImplementedError('Not implemented');
// remove line with error and write your code here
}
};
module.exports = {
chainMaker
};