🏠 Hem
Benchmarkar
📊 Alla benchmarkar 🦖 Dinosaur v1 🦖 Dinosaur v2 ✅ To-Do List-applikationer 🎨 Kreativa fria sidor 🎯 FSACB - Ultimata uppvisningen 🌍 Översättningsbenchmark
Modeller
🏆 Topp 10 modeller 🆓 Gratis modeller 📋 Alla modeller ⚙️ Kilo Code
Resurser
💬 Promptbibliotek 📖 AI-ordlista 🔗 Användbara länkar
Advanced

Code Debugging Assistant

#debugging #code #troubleshooting

Identify potential bugs or logic errors in a provided code snippet.

Here is a JavaScript function intended to reverse a string. It is not working as expected. Can you identify the bug and provide the corrected code? function reverseString(str) { return str.split('').reverse().join(''); } Wait, the input is null and it crashes. How do I fix this edge case?