# Transpile from ES.Next back to ES.now

Type ES Harmony code in the left box. The transpiled version (using Harmonizr project) will be shown in the right box.

// Module declaration module LinearAlgebra { export const CoordinateSystem = 'Cartesian'; // Object literal property shorthand. export function Point(x, y) { return { x, y }; } } class Vector3 { constructor (x, y, z) { this.x = x; this.y = y; this.z = z; } // Euclidian norm get magnitude() { // Arrow function var sqr = p => p * p; return Math.sqrt(sqr(this.x) + sqr(this.y) + sqr(this.z)); } }

The above code editor is based on CodeMirror.

Using Esprima version .