alert("The value of the variable is presently " + varValue + ".");
However, I also see code that calls it as window.alert. For example,
window.alert("The value of the variable is presently " + varValue + ".");
Is there any difference between calling it one way or the other?
Is one considered better style than the other?
Does calling it by window.alert avoid some overhead (i.e. - save the program the problem of resolving where the alert comes from), thereby making the program execute more quickly?