But why not? In the first example you say in the first line myVar = new
Number(); But not more, only that it is a number e.g not a string or a
bolean. Than in the second line you say myVar = "0"; So you give it a
Number.
In the second example you do it in one way you say hey the variable
myVar is a number and is a 0.
See you
Toon Van de Putte schrieb:
I was wondering if the following two lines of code are just different ways
of doing the same thing:
var myVar = new Number();
myVar ="0";
var myVar= Number("0");
--
Toon Van de Putte
Pannenhuisstraat 63
2500 Lier
Belgium
mobile: +32 (0)497 52 74 51
[EMAIL PROTECTED]
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders