hello all to start with i would like to take this opp to say thank you for reading this and secondly i have a little puzzle for you need help with this im trying to find the difference between 2 numbers in an array that Contains 4 and display the results i keep getting undefined her is the code that i have done so far can you please help
<SCRIPT>
var numberArray = [16,14,4,5];
function difference()
{
difference = (firstNumber=[1], secondNumber=[0]);
difference = (firstNumber - secondNumber);
}
document.write( difference() + '
');
difference();
</SCRIPT>