Hello all here is a more intelligent question. This one is just on an exercise I am doing.
I have to call a function using parameter values.
my main function is this
[CODE]
function showResults(race,name,party,votes)
or just
function showResults
in the next lines below
i have to call the function
is this the right way
[CODE]
<script type=”text/javascript”>
{
showResults=(“race[0],name1,party1,votes1”);
}
</script>
or should it be without the { and }
like this?
[CODE]
script type=”text/javascript”>
showResults=(“race[0],name1,party1,votes1”);
</script>
or is it like this
[CODE]
script type=”text/javascript”>
showResults(race[0],name1,party1,votes1);
</script>
Thanks all, what would be the proper method
Thanks