I am pretty new in JavaScript and I have the following doubt about how correctly declare variable.
So are there some differences between this variable declaration:
my_pkcoda = document.getElementById('pkcodaSelected').value;
(my_pkcoda variable is not declared before into the code. It is declared here for the first time and a value it is assigned to it)
and:
var my_pkcoda = document.getElementById('pkcodaSelected').value;
Or there are no differences?