2014-07-13 01:04:16 +02:00
|
|
|
//// [arithmeticOperatorWithOnlyNullValueOrUndefinedValue.ts]
|
|
|
|
// operator *
|
|
|
|
var ra1 = null * null;
|
|
|
|
var ra2 = null * undefined;
|
|
|
|
var ra3 = undefined * null;
|
|
|
|
var ra4 = undefined * undefined;
|
|
|
|
|
|
|
|
// operator /
|
|
|
|
var rb1 = null / null;
|
|
|
|
var rb2 = null / undefined;
|
|
|
|
var rb3 = undefined / null;
|
|
|
|
var rb4 = undefined / undefined;
|
|
|
|
|
|
|
|
// operator %
|
|
|
|
var rc1 = null % null;
|
|
|
|
var rc2 = null % undefined;
|
|
|
|
var rc3 = undefined % null;
|
|
|
|
var rc4 = undefined % undefined;
|
|
|
|
|
|
|
|
// operator -
|
|
|
|
var rd1 = null - null;
|
|
|
|
var rd2 = null - undefined;
|
|
|
|
var rd3 = undefined - null;
|
|
|
|
var rd4 = undefined - undefined;
|
|
|
|
|
|
|
|
// operator <<
|
|
|
|
var re1 = null << null;
|
|
|
|
var re2 = null << undefined;
|
|
|
|
var re3 = undefined << null;
|
|
|
|
var re4 = undefined << undefined;
|
|
|
|
|
|
|
|
// operator >>
|
|
|
|
var rf1 = null >> null;
|
|
|
|
var rf2 = null >> undefined;
|
|
|
|
var rf3 = undefined >> null;
|
|
|
|
var rf4 = undefined >> undefined;
|
|
|
|
|
|
|
|
// operator >>>
|
|
|
|
var rg1 = null >>> null;
|
|
|
|
var rg2 = null >>> undefined;
|
|
|
|
var rg3 = undefined >>> null;
|
|
|
|
var rg4 = undefined >>> undefined;
|
|
|
|
|
|
|
|
// operator &
|
|
|
|
var rh1 = null & null;
|
|
|
|
var rh2 = null & undefined;
|
|
|
|
var rh3 = undefined & null;
|
|
|
|
var rh4 = undefined & undefined;
|
|
|
|
|
|
|
|
// operator ^
|
|
|
|
var ri1 = null ^ null;
|
|
|
|
var ri2 = null ^ undefined;
|
|
|
|
var ri3 = undefined ^ null;
|
|
|
|
var ri4 = undefined ^ undefined;
|
|
|
|
|
|
|
|
// operator |
|
|
|
|
var rj1 = null | null;
|
|
|
|
var rj2 = null | undefined;
|
|
|
|
var rj3 = undefined | null;
|
|
|
|
var rj4 = undefined | undefined;
|
|
|
|
|
|
|
|
//// [arithmeticOperatorWithOnlyNullValueOrUndefinedValue.js]
|
2014-08-12 00:54:12 +02:00
|
|
|
// operator *
|
2014-07-13 01:04:16 +02:00
|
|
|
var ra1 = null * null;
|
|
|
|
var ra2 = null * undefined;
|
|
|
|
var ra3 = undefined * null;
|
|
|
|
var ra4 = undefined * undefined;
|
2014-08-12 00:54:12 +02:00
|
|
|
// operator /
|
2014-07-13 01:04:16 +02:00
|
|
|
var rb1 = null / null;
|
|
|
|
var rb2 = null / undefined;
|
|
|
|
var rb3 = undefined / null;
|
|
|
|
var rb4 = undefined / undefined;
|
2014-08-12 00:54:12 +02:00
|
|
|
// operator %
|
2014-07-13 01:04:16 +02:00
|
|
|
var rc1 = null % null;
|
|
|
|
var rc2 = null % undefined;
|
|
|
|
var rc3 = undefined % null;
|
|
|
|
var rc4 = undefined % undefined;
|
2014-08-12 00:54:12 +02:00
|
|
|
// operator -
|
2014-07-13 01:04:16 +02:00
|
|
|
var rd1 = null - null;
|
|
|
|
var rd2 = null - undefined;
|
|
|
|
var rd3 = undefined - null;
|
|
|
|
var rd4 = undefined - undefined;
|
2014-08-12 00:54:12 +02:00
|
|
|
// operator <<
|
2014-07-13 01:04:16 +02:00
|
|
|
var re1 = null << null;
|
|
|
|
var re2 = null << undefined;
|
|
|
|
var re3 = undefined << null;
|
|
|
|
var re4 = undefined << undefined;
|
2014-08-12 00:54:12 +02:00
|
|
|
// operator >>
|
2014-07-13 01:04:16 +02:00
|
|
|
var rf1 = null >> null;
|
|
|
|
var rf2 = null >> undefined;
|
|
|
|
var rf3 = undefined >> null;
|
|
|
|
var rf4 = undefined >> undefined;
|
2014-08-12 00:54:12 +02:00
|
|
|
// operator >>>
|
2014-07-13 01:04:16 +02:00
|
|
|
var rg1 = null >>> null;
|
|
|
|
var rg2 = null >>> undefined;
|
|
|
|
var rg3 = undefined >>> null;
|
|
|
|
var rg4 = undefined >>> undefined;
|
2014-08-12 00:54:12 +02:00
|
|
|
// operator &
|
2014-07-13 01:04:16 +02:00
|
|
|
var rh1 = null & null;
|
|
|
|
var rh2 = null & undefined;
|
|
|
|
var rh3 = undefined & null;
|
|
|
|
var rh4 = undefined & undefined;
|
2014-08-12 00:54:12 +02:00
|
|
|
// operator ^
|
2014-07-13 01:04:16 +02:00
|
|
|
var ri1 = null ^ null;
|
|
|
|
var ri2 = null ^ undefined;
|
|
|
|
var ri3 = undefined ^ null;
|
|
|
|
var ri4 = undefined ^ undefined;
|
2014-08-12 00:54:12 +02:00
|
|
|
// operator |
|
2014-07-13 01:04:16 +02:00
|
|
|
var rj1 = null | null;
|
|
|
|
var rj2 = null | undefined;
|
|
|
|
var rj3 = undefined | null;
|
|
|
|
var rj4 = undefined | undefined;
|