Part 3 Working With Strings - Second and second to last characters.
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 74/100
- Issue type
- Documentation
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- javascript
- Domain
- documentation
Research direction
Start by reviewing Part 3, “Working with Strings,” and the “Second and Second to Last Characters” exercise. Clarify the expected input length or explain how one-character and empty strings should be handled, and make sure the exercise no longer leaves the possible index-out-of-bounds case ambiguous.
Written by the indexing model from the issue text.
Description
This is not an error, but perhaps a clarification of instructions that could be included.
In part 3 Working with Strings, in the exercise called Second and Second to Last Characters, the question does not mention that the string inputs are at least two characters long, nor does it mention what to do if the string inputs were only one character long or an empty string (resulting in an index out of bounds error if [-2] is used as an index to get the second last characters.
This page raises the possiblity of an index out of bounds error before the exercise is attempted, so this possibility could be included in the exercise.
Alternatively, instructions could be provided that the input string is at least two characters to avoid hesitation.
- Dominant language
- JavaScript
- Stars
- 77
- Forks
- 30
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from rage/programming-26
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
rage/programming-26#74 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
rage/programming-26#68 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 62/100
rage/programming-26#62 ·
-
A typo in Part 4 Open
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
rage/programming-26#56 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
rage/programming-26#55 ·
All issues in rage/programming-26
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
HarperFast/skills#96 ·
-
[Block] Latest Posts [Type] Bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Automattic/studio#4908 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
sugarlabs/musicblocks#8847 ·