The verificaCampoVazios
function has two parameters ( fs
and campos
).
verificaCamposVazios = function (fs, campos)
{
console.log(campos[0]);
}
Example of how function is called:
verificaCamposVazios(fsInformacaoCandidatoDados, ArrayCamposNaoObrigatorios);
How do I call the function without passing the parameter campos
?
I called the function like this:
verificaCamposVazios(fsInformacaoCandidatoDados);
And the function did not execute, but did not show error in console.log
of Chrome
.
I would like to understand how I call the function without passing an argument.