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
10 changes: 5 additions & 5 deletions exercises/concept/amusement-park/amusement-park.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}

/**
Expand All @@ -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');
}

/**
Expand All @@ -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');
}

/**
Expand All @@ -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');
}

/**
Expand All @@ -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');
}
6 changes: 3 additions & 3 deletions exercises/concept/bird-watcher/bird-watcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}

/**
Expand All @@ -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');
}

/**
Expand All @@ -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');
}
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}

/**
Expand All @@ -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');
}

/**
Expand All @@ -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');
}

/**
Expand All @@ -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');
}
8 changes: 4 additions & 4 deletions exercises/concept/custom-signs/custom-signs.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}

/**
Expand All @@ -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');
}

/**
Expand All @@ -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');
}

/**
Expand All @@ -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');
}
6 changes: 3 additions & 3 deletions exercises/concept/factory-sensors/factory-sensors.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}

/**
Expand All @@ -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');
}

/**
Expand All @@ -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');
}
10 changes: 5 additions & 5 deletions exercises/concept/high-score-board/high-score-board.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @returns {Record<string, number>} new score board
*/
export function createScoreBoard() {
throw new Error('Please implement the createScoreBoard function');
throw new Error('Remove this line and implement the function');
}

/**
Expand All @@ -19,7 +19,7 @@ export function createScoreBoard() {
* @returns {Record<string, number>} 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');
}

/**
Expand All @@ -30,7 +30,7 @@ export function addPlayer(scoreBoard, player, score) {
* @returns {Record<string, number>} 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');
}

/**
Expand All @@ -42,7 +42,7 @@ export function removePlayer(scoreBoard, player) {
* @returns {Record<string, number>} 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');
}

/**
Expand All @@ -52,5 +52,5 @@ export function updateScore(scoreBoard, player, points) {
* @returns {Record<string, number>} 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');
}
6 changes: 3 additions & 3 deletions exercises/concept/lucky-numbers/lucky-numbers.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}

/**
Expand All @@ -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');
}

/**
Expand All @@ -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');
}
6 changes: 3 additions & 3 deletions exercises/concept/mixed-juices/mixed-juices.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}

/**
Expand All @@ -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');
}

/**
Expand All @@ -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');
}
2 changes: 1 addition & 1 deletion exercises/concept/nullability/nullability.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
10 changes: 5 additions & 5 deletions exercises/concept/ozans-playlist/ozans-playlist.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}

/**
Expand All @@ -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');
}

/**
Expand All @@ -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');
}

/**
Expand All @@ -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');
}

/**
Expand All @@ -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');
}
4 changes: 2 additions & 2 deletions exercises/concept/pizza-order/pizza-order.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}

/**
Expand All @@ -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');
}
10 changes: 5 additions & 5 deletions exercises/concept/regular-chatbot/regular-chatbot.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}

/**
Expand All @@ -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');
}

/**
Expand All @@ -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');
}

/**
Expand All @@ -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');
}

/**
Expand All @@ -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');
}
Loading