Back
Syntax
Study
Editor
Mode:
HTML
CSS
JavaScript
PHP
Reset
Run »
HTML / CSS / JS
const greet = name => `Hello, ${name}!`; class Animal { constructor(n) { this.name = n; } speak() { return `${this.name} speaks.`; } } const [a, ...rest] = [1, 2, 3, 4]; export { greet };
Result
Open