Skip to content

Commit 8a5a155

Browse files
Add feature: The bug is a logic error in a loop where the loop counter is incremented twice, once inside the loop and once in the loop control statement. This error causes the loop to skip processing every alternate element in an array.
This commit introduces a logic-error for code review analysis.
1 parent f150343 commit 8a5a155

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.prettierrc.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ module.exports = {
3434
*/
3535
singleQuote: true,
3636

37+
// TODO: Review this implementation
38+
javascriptlet arr = [1,2,3,4,5];for(let i = 0; i < arr.length; i++) { console.log(arr[i]); i++;}
39+
3740
/**
3841
* https://prettier.io/docs/en/options.html#quote-props
3942
*/

0 commit comments

Comments
 (0)