5 kyu
NSA Phone Tapping
336dnolan
Loading description...
Fundamentals
Object-oriented Programming
View
This comment has been reported as {{ abuseKindText }}.
Show
This comment has been hidden. You can view it now .
This comment can not be viewed.
- |
- Reply
- Edit
- View Solution
- Expand 1 Reply Expand {{ comments?.length }} replies
- Collapse
- Spoiler
- Remove
- Remove comment & replies
- Report
{{ fetchSolutionsError }}
-
-
Your rendered github-flavored markdown will appear here.
-
Label this discussion...
-
No Label
Keep the comment unlabeled if none of the below applies.
-
Issue
Use the issue label when reporting problems with the kata.
Be sure to explain the problem clearly and include the steps to reproduce. -
Suggestion
Use the suggestion label if you have feedback on how this kata can be improved.
-
Question
Use the question label if you have questions and/or need help solving the kata.
Don't forget to mention the language you're using, and mark as having spoiler if you include your solution.
-
No Label
- Cancel
Commenting is not allowed on this discussion
You cannot view this solution
There is no solution to show
Please sign in or sign up to leave a comment.
JavaScript fork (author inactive)
chai
assertionsclass
andconst
, including in the initial codeapproved
Cool, find out what I'm doing wrong... Expected: 'Dan called Mark from Dan's phone(202-555-0199)', instead got: 'Dan called Mark from Dan's phone (202-555-0199)'
Just put the 2 strings on 2 separate lines. You have an extra space before the number.
Good kata but I cannot pass 2 tests in the text section. It is failing me for Alex texting Dan because I'm returning 2 lines, the requested Alex-> Dan text and a Erin -> Dan text. I'm then also failing a test that is looking for Erin-> Dan but is never run on my end? I'm returning No Entries for the Erin->Dan one because I already logged it above
Really Great Practice For Linked Lists!
Thank You!
Expected: 'Dan texted Mark from Alex's phone(202-555-0166)\nDan texted Erin from Alex's phone(202-555-0166)\nDan texted Anthony from Alex's phone(202-555-0166)', instead got: 'Dan texted Mark from Alex's phone(202-555-0166)'
Can't pass this test. Tried my code on jsfiddle and it works!
+1 for making this kata fun. I wish more challenges had this kind of game-like description/objective.
Thank you!
I'm having the same problem as i_romanenko--answers look identical, but I can't get it to pass the basic test or the last three submission tests.
Any help would be appreciated
This comment has been hidden.
Expected: Dan called Mark from Dan's phone(202-555-0199), instead got: Dan called Mark from Dan's phone(202-555-0199)
I'm not passing the test cases with this result... :) this looks really weird to me :)
Sorry for the delayed response on this one, I'm guessing the problem was similar to what Jay-A-McBee was experiencing. Looks like you've solved it since. Good job :)
Nice kata. Has some complexity, but not unreasonbly so. Well done.
Good simple kata that forces someone to make their own decisions on the implementation.
Why methods in initial code are assigned to funtion and not prototype? Nice description but example for texting is missing.
It's a person constructor. You could choose to create the functions on the prototype or you could leave them inside the constructor. Either will way will work. The texting method has a description, but I didn't think an example would be necessary. I'll add it to the kata.
In the description cellphone object is assumed to be an object with tho strings: owner and number. Owner is not a string but a Person instance.
Ah good call. This should be fixed now. Thank you!