Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion exercises/practice/accumulate/accumulate.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
//

export const accumulate = () => {
throw new Error('Remove this statement and implement this function');
throw new Error('Remove this line and implement the function');
};
2 changes: 1 addition & 1 deletion exercises/practice/acronym/acronym.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
//

export const parse = () => {
throw new Error('Remove this statement and implement this function');
throw new Error('Remove this line and implement the function');
};
4 changes: 2 additions & 2 deletions exercises/practice/affine-cipher/affine-cipher.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export const encode = (phrase, key) => {
throw new Error('Remove this statement and implement this function');
throw new Error('Remove this line and implement the function');
};

export const decode = (phrase, key) => {
throw new Error('Remove this statement and implement this function');
throw new Error('Remove this line and implement the function');
};
2 changes: 1 addition & 1 deletion exercises/practice/all-your-base/all-your-base.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
//

export const convert = () => {
throw new Error('Remove this statement and implement this function');
throw new Error('Remove this line and implement the function');
};
6 changes: 3 additions & 3 deletions exercises/practice/allergies/allergies.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@

export class Allergies {
constructor() {
throw new Error('Remove this statement and implement this function');
throw new Error('Remove this line and implement the function');
}

list() {
throw new Error('Remove this statement and implement this function');
throw new Error('Remove this line and implement the function');
}

allergicTo() {
throw new Error('Remove this statement and implement this function');
throw new Error('Remove this line and implement the function');
}
}
2 changes: 1 addition & 1 deletion exercises/practice/alphametics/alphametics.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
//

export const solve = () => {
throw new Error('Remove this statement and implement this function');
throw new Error('Remove this line and implement the function');
};
2 changes: 1 addition & 1 deletion exercises/practice/anagram/anagram.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
//

export const findAnagrams = () => {
throw new Error('Remove this statement and implement this function');
throw new Error('Remove this line and implement the function');
};
2 changes: 1 addition & 1 deletion exercises/practice/armstrong-numbers/armstrong-numbers.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
//

export const isArmstrongNumber = () => {
throw new Error('Remove this statement and implement this function');
throw new Error('Remove this line and implement the function');
};
4 changes: 2 additions & 2 deletions exercises/practice/atbash-cipher/atbash-cipher.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
//

export const encode = () => {
throw new Error('Remove this statement and implement this function');
throw new Error('Remove this line and implement the function');
};

export const decode = () => {
throw new Error('Remove this statement and implement this function');
throw new Error('Remove this line and implement the function');
};
12 changes: 6 additions & 6 deletions exercises/practice/bank-account/bank-account.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,27 @@

export class BankAccount {
constructor() {
throw new Error('Remove this statement and implement this function');
throw new Error('Remove this line and implement the function');
}

open() {
throw new Error('Remove this statement and implement this function');
throw new Error('Remove this line and implement the function');
}

close() {
throw new Error('Remove this statement and implement this function');
throw new Error('Remove this line and implement the function');
}

deposit() {
throw new Error('Remove this statement and implement this function');
throw new Error('Remove this line and implement the function');
}

withdraw() {
throw new Error('Remove this statement and implement this function');
throw new Error('Remove this line and implement the function');
}

get balance() {
throw new Error('Remove this statement and implement this function');
throw new Error('Remove this line and implement the function');
}
}

Expand Down
2 changes: 1 addition & 1 deletion exercises/practice/beer-song/beer-song.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
//

export const recite = (initialBottlesCount, takeDownCount) => {
throw new Error('Remove this statement and implement this function');
throw new Error('Remove this line and implement the function');
};
12 changes: 6 additions & 6 deletions exercises/practice/binary-search-tree/binary-search-tree.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,25 @@

export class BinarySearchTree {
constructor() {
throw new Error('Remove this statement and implement this function');
throw new Error('Remove this line and implement the function');
}

get data() {
throw new Error('Remove this statement and implement this function');
throw new Error('Remove this line and implement the function');
}
get right() {
throw new Error('Remove this statement and implement this function');
throw new Error('Remove this line and implement the function');
}

get left() {
throw new Error('Remove this statement and implement this function');
throw new Error('Remove this line and implement the function');
}

insert() {
throw new Error('Remove this statement and implement this function');
throw new Error('Remove this line and implement the function');
}

each() {
throw new Error('Remove this statement and implement this function');
throw new Error('Remove this line and implement the function');
}
}
2 changes: 1 addition & 1 deletion exercises/practice/binary-search/binary-search.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
//

export const find = () => {
throw new Error('Remove this statement and implement this function');
throw new Error('Remove this line and implement the function');
};
4 changes: 2 additions & 2 deletions exercises/practice/binary/binary.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@

export class Binary {
constructor() {
throw new Error('Remove this statement and implement this function');
throw new Error('Remove this line and implement the function');
}

toDecimal() {
throw new Error('Remove this statement and implement this function');
throw new Error('Remove this line and implement the function');
}
}
2 changes: 1 addition & 1 deletion exercises/practice/bob/bob.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
//

export const hey = (message) => {
throw new Error('Remove this statement and implement this function');
throw new Error('Remove this line and implement the function');
};
2 changes: 1 addition & 1 deletion exercises/practice/book-store/book-store.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
//

export const cost = (books) => {
throw new Error('Remove this statement and implement this function');
throw new Error('Remove this line and implement the function');
};
2 changes: 1 addition & 1 deletion exercises/practice/bottle-song/bottle-song.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
//

export const recite = (initialBottlesCount, takeDownCount) => {
throw new Error('Remove this statement and implement this function');
throw new Error('Remove this line and implement the function');
};
4 changes: 2 additions & 2 deletions exercises/practice/bowling/bowling.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@

export class Bowling {
roll() {
throw new Error('Remove this statement and implement this function');
throw new Error('Remove this line and implement the function');
}

score() {
throw new Error('Remove this statement and implement this function');
throw new Error('Remove this line and implement the function');
}
}
2 changes: 1 addition & 1 deletion exercises/practice/change/change.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@

export class Change {
calculate(coinArray, target) {
throw new Error('Remove this statement and implement this function');
throw new Error('Remove this line and implement the function');
}
}
14 changes: 7 additions & 7 deletions exercises/practice/circular-buffer/circular-buffer.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,36 +5,36 @@

class CircularBuffer {
constructor() {
throw new Error('Remove this statement and implement this function');
throw new Error('Remove this line and implement the function');
}

write() {
throw new Error('Remove this statement and implement this function');
throw new Error('Remove this line and implement the function');
}

read() {
throw new Error('Remove this statement and implement this function');
throw new Error('Remove this line and implement the function');
}

forceWrite() {
throw new Error('Remove this statement and implement this function');
throw new Error('Remove this line and implement the function');
}

clear() {
throw new Error('Remove this statement and implement this function');
throw new Error('Remove this line and implement the function');
}
}

export default CircularBuffer;

export class BufferFullError extends Error {
constructor() {
throw new Error('Remove this statement and implement this function');
throw new Error('Remove this line and implement the function');
}
}

export class BufferEmptyError extends Error {
constructor() {
throw new Error('Remove this statement and implement this function');
throw new Error('Remove this line and implement the function');
}
}
10 changes: 5 additions & 5 deletions exercises/practice/clock/clock.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,22 @@

export class Clock {
constructor() {
throw new Error('Remove this statement and implement this function');
throw new Error('Remove this line and implement the function');
}

toString() {
throw new Error('Remove this statement and implement this function');
throw new Error('Remove this line and implement the function');
}

plus() {
throw new Error('Remove this statement and implement this function');
throw new Error('Remove this line and implement the function');
}

minus() {
throw new Error('Remove this statement and implement this function');
throw new Error('Remove this line and implement the function');
}

equals() {
throw new Error('Remove this statement and implement this function');
throw new Error('Remove this line and implement the function');
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
//

export const steps = () => {
throw new Error('Remove this statement and implement this function');
throw new Error('Remove this line and implement the function');
};
20 changes: 10 additions & 10 deletions exercises/practice/complex-numbers/complex-numbers.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,42 +5,42 @@

export class ComplexNumber {
constructor() {
throw new Error('Remove this statement and implement this function');
throw new Error('Remove this line and implement the function');
}

get real() {
throw new Error('Remove this statement and implement this function');
throw new Error('Remove this line and implement the function');
}

get imag() {
throw new Error('Remove this statement and implement this function');
throw new Error('Remove this line and implement the function');
}

add() {
throw new Error('Remove this statement and implement this function');
throw new Error('Remove this line and implement the function');
}

sub() {
throw new Error('Remove this statement and implement this function');
throw new Error('Remove this line and implement the function');
}

div() {
throw new Error('Remove this statement and implement this function');
throw new Error('Remove this line and implement the function');
}

mul() {
throw new Error('Remove this statement and implement this function');
throw new Error('Remove this line and implement the function');
}

get abs() {
throw new Error('Remove this statement and implement this function');
throw new Error('Remove this line and implement the function');
}

get conj() {
throw new Error('Remove this statement and implement this function');
throw new Error('Remove this line and implement the function');
}

get exp() {
throw new Error('Remove this statement and implement this function');
throw new Error('Remove this line and implement the function');
}
}
4 changes: 2 additions & 2 deletions exercises/practice/connect/connect.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@

export class Board {
constructor() {
throw new Error('Remove this statement and implement this function');
throw new Error('Remove this line and implement the function');
}

winner() {
throw new Error('Remove this statement and implement this function');
throw new Error('Remove this line and implement the function');
}
}
4 changes: 2 additions & 2 deletions exercises/practice/crypto-square/crypto-square.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@

export class Crypto {
constructor() {
throw new Error('Remove this statement and implement this function');
throw new Error('Remove this line and implement the function');
}

get ciphertext() {
throw new Error('Remove this statement and implement this function');
throw new Error('Remove this line and implement the function');
}
}
Loading