main.js
1
2
3
4
5
6
7
8
9
10
function double(n) {
    return 2 * n;
}

var x = double(5);
var y = double(7);
console.log(x); // 10
console.log(y); // 14

console.log(double(10))
Native Browser JavaScript