loading
main.js
1
2
3
4
5
6
7
8
9
10
11
12
13
// ES5
var multiply_ES5 = function(x, y) {
  return x * y;
}

// ES6
const miltiply_ES6 = (x, y) => x * y;

console.log(typeof miltiply_ES6);

var result = miltiply_ES6(4, 3);

console.log("result is " + result);
Babel Compiler v6.4.4 Copyright (c) 2014-2015 Sebastian McKenzie