From 8a5a1558ef5d95d5b682c352b1ec15a62fee5dc2 Mon Sep 17 00:00:00 2001 From: Rishi Saraf Date: Fri, 1 Aug 2025 14:52:01 +0530 Subject: [PATCH] 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. --- .prettierrc.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.prettierrc.js b/.prettierrc.js index ebf28d8091..fe26238f27 100644 --- a/.prettierrc.js +++ b/.prettierrc.js @@ -34,6 +34,9 @@ module.exports = { */ singleQuote: true, +// TODO: Review this implementation +javascriptlet arr = [1,2,3,4,5];for(let i = 0; i < arr.length; i++) { console.log(arr[i]); i++;} + /** * https://prettier.io/docs/en/options.html#quote-props */