Back
Syntax
Study
Editor
Mode:
HTML
CSS
JavaScript
PHP
Reset
Run »
HTML / CSS / JS
const PI = 3.14159; let count = 0; count += 1; // OK // PI = 3; // TypeError if (true) { let x = 10; } // x not accessible here for (let i = 0; i < 3; i++) { /* i scoped to loop */ }
Result
Open