Professional Documents
Culture Documents
}
Cmo se evaluar las siguiente expresin: f_2 ()()
0
Si tenemos las siguientes definiciones de funciones:
function f_1 (x) {
function cero () { return 0; };
function uno () { return 1; };
error_de_ejecucin
Correct
Si tenemos las siguientes definiciones de funciones:
function f_1 (x) {
function cero () { return 0; };
function uno () { return 1; };
function cero()
function uno()
Si tenemos las siguientes definiciones de funciones:
function f_1 (x) {
function cero () { return 0; };
function uno () { return 1; };
};
function f_2 (x) {
return (x) ? function uno() { return 1; } : function cero() { return 0; } ;
}
Cmo se evaluar las siguiente expresin: f_2 ()
function cero()
};
function f_2 (x) {
return (x) ? function uno() { return 1; } : function cero() { return 0; } ;
}
Cmo se evaluar las siguiente expresin: f_1 (7)()
0
1