🏠 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
Beginner

Sum of Array Elements

#array #loop #math

Calculate the total sum of all numbers in a list.

Write a function that accepts an array of numbers and returns the sum of all the elements in the array. If the array is empty, the function should return 0.