Loading workspace environment...
A ready-to-run JavaScript project using the platform's default boilerplate.
// JavaScript ES2024 Online Compiler
function calculateStats(numbers) {
const sum = numbers.reduce((acc, curr) => acc + curr, 0);
const avg = sum / numbers.length;
return { count: numbers.length, sum, avg };
}
const data = [12, 45, 68, 23, 89, 94];
console.log("Input Data:", data);
console.log("Calculated Statistics:", calculateStats(data));
Need reference documentation or standard library guides for JavaScript (ES2024)?
A ready-to-run Python project using the platform's default boilerplate.
A ready-to-run TypeScript project using the platform's default boilerplate.
A ready-to-run HTML project using the platform's default boilerplate.