Draft
/* Strip my Comments */
185 of 401debri
Description:
Comments are the most important thing that developers use in their day to day work.
Now the question is that while displaying the code on the screen it should not display any comments.
For example:
stripIt("1 + /* 2 */3") => "1 + 3"
stripIt("var Foo = 1;// Foo declared") => "var Foo = 1;"
Write a function that takes a string and returns a string without whatever there is in the comment.
Note: comments can also be multiline and will always be presente in html format, ie: /* comment with starting and closing point */
or // comment up to the end of the line
.
Logic
Strings
Algorithms
Similar Kata:
Stats:
Created | Jul 6, 2015 |
Warriors Trained | 1757 |
Total Skips | 458 |
Total Code Submissions | 4958 |
Total Times Completed | 401 |
JavaScript Completions | 185 |
Python Completions | 155 |
Ruby Completions | 73 |
Total Stars | 28 |
% of votes with a positive feedback rating | 92% of 161 |
Total "Very Satisfied" Votes | 139 |
Total "Somewhat Satisfied" Votes | 17 |
Total "Not Satisfied" Votes | 6 |
Total Rank Assessments | 172 |
Average Assessed Rank | 6 kyu |
Highest Assessed Rank | 1 kyu |
Lowest Assessed Rank | 8 kyu |