1 2 3 4 5 6 |
'use strict'; const p = console.log; const caller = (arg, callback) => callback(arg); const square = (x) => x * x; p(caller(6, square)); |
1 |
36 |
1 2 3 4 5 6 |
'use strict'; const p = console.log; const caller = (arg, callback) => callback(arg); const square = (x) => x * x; p(caller(6, square)); |
1 |
36 |