Retired
All Star Code Challenge #26 (retired)
251 of 536shaddyjr
Description:
This Kata is intended as a small challenge for my students
All Star Code Challenge #26
All of Raj's once loner friends are now happily in a relationship. Even Sheldon!
Raj has hired you to manually change his group status to "In a relationship," so he can show it to his friends!
Create a function called missionImpossible() that takes a Group object as input that changes the "Raj" key, if it exists, to "In a relationship". The, now altered, object should be returned.
var wholeGroup = { Leonard: 'Married',
Penny: 'Married',
Howard: 'Married',
Bernadette: 'Married',
Sheldon: 'In a relationship',
Amy: 'In a relationship',
Raj: 'Single' }
missionImpossible(wholeGroup);
// =>
// { Leonard: 'Married',
// Penny: 'Married',
// Howard: 'Married',
// Bernadette: 'Married',
// Sheldon: 'In a relationship',
// Amy: 'In a relationship',
// Raj: 'In a relationship' }
Note: If Raj is not part of the input group, he should NOT be added to it.
Fundamentals
Similar Kata:
Stats:
Created | Dec 30, 2016 |
Warriors Trained | 1005 |
Total Skips | 229 |
Total Code Submissions | 1659 |
Total Times Completed | 536 |
JavaScript Completions | 251 |
Python Completions | 295 |
Total Stars | 8 |
% of votes with a positive feedback rating | 70% of 258 |
Total "Very Satisfied" Votes | 144 |
Total "Somewhat Satisfied" Votes | 72 |
Total "Not Satisfied" Votes | 42 |
Total Rank Assessments | 279 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 1 kyu |
Lowest Assessed Rank | 8 kyu |