Intermediate
Debugging JavaScript Error
Analyze a JavaScript code snippet and identify the bug causing an error.
📝 Prompt İçeriği
Review the following JavaScript code snippet. It is supposed to filter an array of numbers to keep only those greater than 10, but it is throwing a TypeError. Explain why the error is occurring and provide the corrected code. [Code Placeholder: const numbers = [5, 12, 8, 130, 44]; const result = numbers.filter(function(value) { return value > 10; }); console.log(result(0));]