I must work with the following slogan: "Let's create three functions and see how to start working with callbacks.
The first function will be called double. It will receive a number and return double.
The second function will be called triple. It will receive a number and return triple.
The third function will be called applyCallback and will receive a number and a function as a parameter. This will return the value of applying said function to the value it received."
I solved it in the following way:
let numero1 = 2
function doble(numero1) {
return (doble * numero1);
};
function triple(numero1){
return (triple * numero1);
};
function aplicarCallBack(numero1, doble) {
return aplicarCallBack;
};
aplicarCallBack(2, doble);
It has me really confused since I just started to see this topic and I don't understand it much, but I would like and it would be very useful for me the help to see what I am doing wrong and correct the error. From already thank you very much!