/* global window */
window.es6Example = window.es6Example || {};
window.es6Example.arrow = {};

window.es6Example.arrow.code =
`let square = x => x * x;
let add = (a, b) => a + b;
let pi = () => 3.1415;

console.log(square(5));
console.log(add(3, 4));
console.log(pi());`;

window.es6Example.arrow.display = 'Arrow Functions';

/* global window */
window.es6Example = window.es6Example || {};
window.es6Example.arrow = {};

window.es6Example.arrow.code =
`const square = x => x * x;
const add = (a, b) => a + b;
const pi = () => 3.1415;

console.log(square(5));
console.log(add(3, 4));
console.log(pi());`;

window.es6Example.arrow.display = 'Arrow Functions';

Use const for variables that aren't re-assigned
Use const for variables that aren't re-assigned