I can not assign values to variables

-3

I'm trying to assign values to some variables and I'm not succeeding in calling a function step a parameter which I'm getting correctly, but trying to pass this and more a value as parameters I can not.

I did this:

function BuscaDados(pIdAgenda) {    
    var params = {
        Operacao: 'BuscaUnica',
        pIdAgenda: pIdAgenda
    };
}

Running% s of the variable sent to the DataSource function, the value is correct, but when trying to assign them to console.log and running params what I get is console.log

    
asked by anonymous 27.08.2015 / 16:25

1 answer

1
function BuscaDados(pIdAgenda) {    
var params = {
    Operacao: 'BuscaUnica',
    pIdAgenda: pIdAgenda
}; 
return params;

}

Search Results (123);

    
27.08.2015 / 18:41