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

Stats:

CreatedDec 30, 2016
Warriors Trained1005
Total Skips229
Total Code Submissions1659
Total Times Completed536
JavaScript Completions251
Python Completions295
Total Stars8
% of votes with a positive feedback rating70% of 258
Total "Very Satisfied" Votes144
Total "Somewhat Satisfied" Votes72
Total "Not Satisfied" Votes42
Total Rank Assessments279
Average Assessed Rank
7 kyu
Highest Assessed Rank
1 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • shaddyjr Avatar
  • Chrono79 Avatar
  • user2514386 Avatar
Ad