Define a primitive data type: Difference between revisions

Content added Content deleted
No edit summary
Line 618: Line 618:


WScript.Echo(w + x); //7
WScript.Echo(w + x); //7
WScript.Echo(x - w); //1
WScript.Echo(w * x); //12
WScript.Echo(w / x); //0.75
WScript.Echo(w < x); //true
WScript.Echo(x < w); //false


var y = new Num(0); //TypeError
var y = new Num(0); //TypeError