Advanced
Find Logic Error
Analyze a code snippet to find a logical mistake.
📝 प्रॉम्ट सामग्री
Analyze the following JavaScript code snippet intended to reverse an array. Identify why it is not working as expected and provide the corrected code: [Insert snippet here]