Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const computeAge = function () {
- let age = 10;
- console.log('another age: ', age);
- }
- const anotherComputeAge = computeAge;
- anotherComputeAge();
- function callComputeAge(fn) {
- fn();
- }
- const adder = function(first, second) {
- console.log(first + second);
- };
- adder(1, 2);
Add Comment
Please, Sign In to add comment