Skip to content
Try it live
Code Playground
Paste code, validate JSON, tidy SQL, normalize whitespace. JavaScript runs right in your browser.
Language
Java
JavaScript
HTML
CSS
SQL
JSON
XML
Other
Format / validate
Run JS
Clear
// Welcome to the AoG Code Playground // Test, format, and inspect code snippets function calculateStats(scores) { return scores.reduce((a, b) => a + b, 0) / scores.length; } console.log(calculateStats([100, 250, 420]));