🏠 Home
Benchmark Hub
📊 All Benchmarks 🦖 Dinosaur v1 🦖 Dinosaur v2 ✅ To-Do List Applications 🎨 Creative Free Pages 🎯 FSACB - Ultimate Showcase 🌍 Translation Benchmark
Models
🏆 Top 10 Models 🆓 Free Models 📋 All Models ⚙️ Kilo Code
Resources
💬 Prompts Library 📖 AI Glossary 🔗 Useful Links
intermediate

Debug JavaScript Function

#javascript #debugging #arrays

Find and fix a logic error in a JavaScript array function.

The following JavaScript function is intended to return the largest number in an array, but it is currently returning undefined. Analyze the code, find the logic error, and provide the corrected function.