diff --git a/exercises/concept/amusement-park/amusement-park.js b/exercises/concept/amusement-park/amusement-park.js index 93f397df61..e7d9cc19da 100644 --- a/exercises/concept/amusement-park/amusement-park.js +++ b/exercises/concept/amusement-park/amusement-park.js @@ -10,7 +10,7 @@ * @returns {Visitor} the visitor that was created */ export function createVisitor(name, age, ticketId) { - throw new Error('Please implement the createVisitor function.'); + throw new Error('Remove this line and implement the function'); } /** @@ -20,7 +20,7 @@ export function createVisitor(name, age, ticketId) { * @returns {Visitor} the visitor without a ticket */ export function revokeTicket(visitor) { - throw new Error('Please implement the revokeTicket function.'); + throw new Error('Remove this line and implement the function'); } /** @@ -31,7 +31,7 @@ export function revokeTicket(visitor) { * @returns {string} ticket status */ export function ticketStatus(tickets, ticketId) { - throw new Error('Please implement the ticketStatus function.'); + throw new Error('Remove this line and implement the function'); } /** @@ -43,7 +43,7 @@ export function ticketStatus(tickets, ticketId) { * @returns {string} ticket status */ export function simpleTicketStatus(tickets, ticketId) { - throw new Error('Please implement the simpleTicketStatus function.'); + throw new Error('Remove this line and implement the function'); } /** @@ -53,5 +53,5 @@ export function simpleTicketStatus(tickets, ticketId) { * @returns {string | undefined} version */ export function gtcVersion(visitor) { - throw new Error('Please implement the gtcVersion function.'); + throw new Error('Remove this line and implement the function'); } diff --git a/exercises/concept/bird-watcher/bird-watcher.js b/exercises/concept/bird-watcher/bird-watcher.js index 476d3634f5..d94a707931 100644 --- a/exercises/concept/bird-watcher/bird-watcher.js +++ b/exercises/concept/bird-watcher/bird-watcher.js @@ -11,7 +11,7 @@ * @returns {number} total bird count */ export function totalBirdCount(birdsPerDay) { - throw new Error('Please implement the totalBirdCount function'); + throw new Error('Remove this line and implement the function'); } /** @@ -22,7 +22,7 @@ export function totalBirdCount(birdsPerDay) { * @returns {number} birds counted in the given week */ export function birdsInWeek(birdsPerDay, week) { - throw new Error('Please implement the birdsInWeek function'); + throw new Error('Remove this line and implement the function'); } /** @@ -33,5 +33,5 @@ export function birdsInWeek(birdsPerDay, week) { * @returns {void} should not return anything */ export function fixBirdCountLog(birdsPerDay) { - throw new Error('Please implement the fixBirdCountLog function'); + throw new Error('Remove this line and implement the function'); } diff --git a/exercises/concept/coordinate-transformation/coordinate-transformation.js b/exercises/concept/coordinate-transformation/coordinate-transformation.js index e32567ad1a..03fd4ff20b 100644 --- a/exercises/concept/coordinate-transformation/coordinate-transformation.js +++ b/exercises/concept/coordinate-transformation/coordinate-transformation.js @@ -15,7 +15,7 @@ * translated coordinate pair in the form [x, y] */ export function translate2d(dx, dy) { - throw new Error('Implement the translate2d function'); + throw new Error('Remove this line and implement the function'); } /** @@ -29,7 +29,7 @@ export function translate2d(dx, dy) { * scaled coordinate pair in the form [x, y] */ export function scale2d(sx, sy) { - throw new Error('Implement the scale2d function'); + throw new Error('Remove this line and implement the function'); } /** @@ -43,7 +43,7 @@ export function scale2d(sx, sy) { * transformed coordinate pair in the form [x, y] */ export function composeTransform(f, g) { - throw new Error('Implement the composeTransform function'); + throw new Error('Remove this line and implement the function'); } /** @@ -56,5 +56,5 @@ export function composeTransform(f, g) { * if the arguments are the same on subsequent calls, or compute a new result if they are different. */ export function memoizeTransform(f) { - throw new Error('Implement the memoizeTransform function'); + throw new Error('Remove this line and implement the function'); } diff --git a/exercises/concept/custom-signs/custom-signs.js b/exercises/concept/custom-signs/custom-signs.js index d9f5dad561..a05dcc934f 100644 --- a/exercises/concept/custom-signs/custom-signs.js +++ b/exercises/concept/custom-signs/custom-signs.js @@ -14,7 +14,7 @@ */ export function buildSign(occasion, name) { - throw new Error('Implement the buildSign function'); + throw new Error('Remove this line and implement the function'); } /** @@ -26,7 +26,7 @@ export function buildSign(occasion, name) { */ export function buildBirthdaySign(age) { - throw new Error('Implement the buildBirthdaySign function'); + throw new Error('Remove this line and implement the function'); } /** @@ -39,7 +39,7 @@ export function buildBirthdaySign(age) { */ export function graduationFor(name, year) { - throw new Error('Implement the graduationFor function'); + throw new Error('Remove this line and implement the function'); } /** @@ -53,5 +53,5 @@ export function graduationFor(name, year) { */ export function costOf(sign, currency) { - throw new Error('Implement the costOf function'); + throw new Error('Remove this line and implement the function'); } diff --git a/exercises/concept/factory-sensors/factory-sensors.js b/exercises/concept/factory-sensors/factory-sensors.js index cfc2b02d67..be71cfd434 100644 --- a/exercises/concept/factory-sensors/factory-sensors.js +++ b/exercises/concept/factory-sensors/factory-sensors.js @@ -16,7 +16,7 @@ export class OverheatingError extends Error { * @throws {Error} */ export function checkHumidityLevel(humidityPercentage) { - throw new Error('Implement the checkHumidity function'); + throw new Error('Remove this line and implement the function'); } /** @@ -26,7 +26,7 @@ export function checkHumidityLevel(humidityPercentage) { * @throws {ArgumentError|OverheatingError} */ export function reportOverheating(temperature) { - throw new Error('Implement the reportOverheating function'); + throw new Error('Remove this line and implement the function'); } /** @@ -41,5 +41,5 @@ export function reportOverheating(temperature) { * @throws {ArgumentError|OverheatingError|Error} */ export function monitorTheMachine(actions) { - throw new Error('Implement the monitorTheMachine function'); + throw new Error('Remove this line and implement the function'); } diff --git a/exercises/concept/high-score-board/high-score-board.js b/exercises/concept/high-score-board/high-score-board.js index 1e365bd655..c652240b8f 100644 --- a/exercises/concept/high-score-board/high-score-board.js +++ b/exercises/concept/high-score-board/high-score-board.js @@ -7,7 +7,7 @@ * @returns {Record} new score board */ export function createScoreBoard() { - throw new Error('Please implement the createScoreBoard function'); + throw new Error('Remove this line and implement the function'); } /** @@ -19,7 +19,7 @@ export function createScoreBoard() { * @returns {Record} updated score board */ export function addPlayer(scoreBoard, player, score) { - throw new Error('Please implement the addPlayer function'); + throw new Error('Remove this line and implement the function'); } /** @@ -30,7 +30,7 @@ export function addPlayer(scoreBoard, player, score) { * @returns {Record} updated score board */ export function removePlayer(scoreBoard, player) { - throw new Error('Please implement the removePlayer function'); + throw new Error('Remove this line and implement the function'); } /** @@ -42,7 +42,7 @@ export function removePlayer(scoreBoard, player) { * @returns {Record} updated score board */ export function updateScore(scoreBoard, player, points) { - throw new Error('Please implement the updateScore function'); + throw new Error('Remove this line and implement the function'); } /** @@ -52,5 +52,5 @@ export function updateScore(scoreBoard, player, points) { * @returns {Record} updated score board */ export function applyMondayBonus(scoreBoard) { - throw new Error('Please implement the applyMondayBonus function'); + throw new Error('Remove this line and implement the function'); } diff --git a/exercises/concept/lucky-numbers/lucky-numbers.js b/exercises/concept/lucky-numbers/lucky-numbers.js index 069705809a..3146f9154b 100644 --- a/exercises/concept/lucky-numbers/lucky-numbers.js +++ b/exercises/concept/lucky-numbers/lucky-numbers.js @@ -8,7 +8,7 @@ * @returns {number} sum of the two arrays */ export function twoSum(array1, array2) { - throw new Error('Implement the twoSum function'); + throw new Error('Remove this line and implement the function'); } /** @@ -18,7 +18,7 @@ export function twoSum(array1, array2) { * @returns {boolean} whether the number is a palindrome or not */ export function luckyNumber(value) { - throw new Error('Implement the luckyNumber function'); + throw new Error('Remove this line and implement the function'); } /** @@ -29,5 +29,5 @@ export function luckyNumber(value) { * @returns {string} error message */ export function errorMessage(input) { - throw new Error('Implement the errorMessage function'); + throw new Error('Remove this line and implement the function'); } diff --git a/exercises/concept/mixed-juices/mixed-juices.js b/exercises/concept/mixed-juices/mixed-juices.js index dde696fac8..d5f175fbe6 100644 --- a/exercises/concept/mixed-juices/mixed-juices.js +++ b/exercises/concept/mixed-juices/mixed-juices.js @@ -11,7 +11,7 @@ * @returns {number} time in minutes */ export function timeToMixJuice(name) { - throw new Error('Please implement the timeToMixJuice function'); + throw new Error('Remove this line and implement the function'); } /** @@ -23,7 +23,7 @@ export function timeToMixJuice(name) { * @returns {number} number of limes cut */ export function limesToCut(wedgesNeeded, limes) { - throw new Error('Please implement the limesToCut function'); + throw new Error('Remove this line and implement the function'); } /** @@ -34,5 +34,5 @@ export function limesToCut(wedgesNeeded, limes) { * @returns {string[]} remaining orders after the time is up */ export function remainingOrders(timeLeft, orders) { - throw new Error('Please implement the remainingOrders function'); + throw new Error('Remove this line and implement the function'); } diff --git a/exercises/concept/nullability/nullability.js b/exercises/concept/nullability/nullability.js index b8ead1ec6f..7638e2a5de 100644 --- a/exercises/concept/nullability/nullability.js +++ b/exercises/concept/nullability/nullability.js @@ -14,5 +14,5 @@ * @returns {string} the text to print on the badge */ export function printBadge(id, name, department) { - throw new Error('Please implement the printBadge function'); + throw new Error('Remove this line and implement the function'); } diff --git a/exercises/concept/ozans-playlist/ozans-playlist.js b/exercises/concept/ozans-playlist/ozans-playlist.js index 349cdd5f04..1b02443a3a 100644 --- a/exercises/concept/ozans-playlist/ozans-playlist.js +++ b/exercises/concept/ozans-playlist/ozans-playlist.js @@ -11,7 +11,7 @@ * @returns {string[]} new playlist with unique entries */ export function removeDuplicates(playlist) { - throw new Error('Please implement the removeDuplicates function'); + throw new Error('Remove this line and implement the function'); } /** @@ -22,7 +22,7 @@ export function removeDuplicates(playlist) { * @returns {boolean} whether the track is in the playlist */ export function hasTrack(playlist, track) { - throw new Error('Please implement the hasTrack function'); + throw new Error('Remove this line and implement the function'); } /** @@ -33,7 +33,7 @@ export function hasTrack(playlist, track) { * @returns {string[]} new playlist */ export function addTrack(playlist, track) { - throw new Error('Please implement the addTrack function'); + throw new Error('Remove this line and implement the function'); } /** @@ -44,7 +44,7 @@ export function addTrack(playlist, track) { * @returns {string[]} new playlist */ export function deleteTrack(playlist, track) { - throw new Error('Please implement the deleteTrack function'); + throw new Error('Remove this line and implement the function'); } /** @@ -54,5 +54,5 @@ export function deleteTrack(playlist, track) { * @returns {string[]} list of artists */ export function listArtists(playlist) { - throw new Error('Please implement the listArtists function'); + throw new Error('Remove this line and implement the function'); } diff --git a/exercises/concept/pizza-order/pizza-order.js b/exercises/concept/pizza-order/pizza-order.js index 4f0ec737f9..2bbb25f2f3 100644 --- a/exercises/concept/pizza-order/pizza-order.js +++ b/exercises/concept/pizza-order/pizza-order.js @@ -11,7 +11,7 @@ * @returns {number} the price of the pizza */ export function pizzaPrice(pizza, ...extras) { - throw new Error('Please implement the pizzaPrice function'); + throw new Error('Remove this line and implement the function'); } /** @@ -24,5 +24,5 @@ export function pizzaPrice(pizza, ...extras) { * @returns {number} the price of the total order */ export function orderPrice(pizzaOrders) { - throw new Error('Please implement the orderPrice function'); + throw new Error('Remove this line and implement the function'); } diff --git a/exercises/concept/regular-chatbot/regular-chatbot.js b/exercises/concept/regular-chatbot/regular-chatbot.js index fd141786b1..9bfe2d554e 100644 --- a/exercises/concept/regular-chatbot/regular-chatbot.js +++ b/exercises/concept/regular-chatbot/regular-chatbot.js @@ -8,7 +8,7 @@ */ export function isValidCommand(command) { - throw new Error('Please implement the isValidCommand function'); + throw new Error('Remove this line and implement the function'); } /** @@ -18,7 +18,7 @@ export function isValidCommand(command) { * @returns {string} The message without the emojis encryption */ export function removeEmoji(message) { - throw new Error('Please implement the removeEmoji function'); + throw new Error('Remove this line and implement the function'); } /** @@ -28,7 +28,7 @@ export function removeEmoji(message) { * @returns {string} the Chatbot response to the phone Validation */ export function checkPhoneNumber(number) { - throw new Error('Please implement the checkPhoneNumber function'); + throw new Error('Remove this line and implement the function'); } /** @@ -38,7 +38,7 @@ export function checkPhoneNumber(number) { * @returns {string[] | null} all the possible URL's that the user may have answered */ export function getURL(userInput) { - throw new Error('Please implement the userInput function'); + throw new Error('Remove this line and implement the function'); } /** @@ -48,5 +48,5 @@ export function getURL(userInput) { * @returns {string} Greeting from the chatbot */ export function niceToMeetYou(fullName) { - throw new Error('Please implement the fullName function'); + throw new Error('Remove this line and implement the function'); } diff --git a/exercises/concept/train-driver/train-driver.js b/exercises/concept/train-driver/train-driver.js index e44f07b03f..b33bc4309f 100644 --- a/exercises/concept/train-driver/train-driver.js +++ b/exercises/concept/train-driver/train-driver.js @@ -11,7 +11,7 @@ * @returns {number[]} wagon ids */ export function getListOfWagons(a, b, c, d, e, f, g, h, i, j, k, l, m, n) { - throw new Error('Please implement the getListOfWagons function'); + throw new Error('Remove this line and implement the function'); } /** @@ -21,7 +21,7 @@ export function getListOfWagons(a, b, c, d, e, f, g, h, i, j, k, l, m, n) { * @returns {number[]} reordered list of wagons */ export function fixListOfWagons(ids) { - throw new Error('Please implement the fixListOfWagons function'); + throw new Error('Remove this line and implement the function'); } /** @@ -32,7 +32,7 @@ export function fixListOfWagons(ids) { * @returns {number[]} corrected list of wagons */ export function correctListOfWagons(ids, missingWagons) { - throw new Error('Please implement the correctListOfWagons function'); + throw new Error('Remove this line and implement the function'); } /** @@ -43,7 +43,7 @@ export function correctListOfWagons(ids, missingWagons) { * @returns {Record} extended route information */ export function extendRouteInformation(information, additional) { - throw new Error('Please implement the extendRouteInformation function'); + throw new Error('Remove this line and implement the function'); } /** @@ -53,5 +53,5 @@ export function extendRouteInformation(information, additional) { * @returns {[string, Record]} array with arrival time and object without arrival time */ export function separateTimeOfArrival(information) { - throw new Error('Please implement the separateTimeOfArrival function'); + throw new Error('Remove this line and implement the function'); } diff --git a/exercises/concept/vehicle-purchase/vehicle-purchase.js b/exercises/concept/vehicle-purchase/vehicle-purchase.js index d635d2c7ce..aa414d4d38 100644 --- a/exercises/concept/vehicle-purchase/vehicle-purchase.js +++ b/exercises/concept/vehicle-purchase/vehicle-purchase.js @@ -11,7 +11,7 @@ * @returns {boolean} whether a license is required */ export function needsLicense(kind) { - throw new Error('Please implement the needsLicense function'); + throw new Error('Remove this line and implement the function'); } /** @@ -23,7 +23,7 @@ export function needsLicense(kind) { * @returns {string} a sentence of advice which option to choose */ export function chooseVehicle(option1, option2) { - throw new Error('Please implement the chooseVehicle function'); + throw new Error('Remove this line and implement the function'); } /** @@ -35,5 +35,5 @@ export function chooseVehicle(option1, option2) { * @returns {number} expected resell price in the dealership */ export function calculateResellPrice(originalPrice, age) { - throw new Error('Please implement the calculateResellPrice function'); + throw new Error('Remove this line and implement the function'); }