Published on

CS 3500 Day 21

Authors
  • avatar
    Name
    Jacob Aronoff
    Twitter

Object Oriented Design

Today we're going over javascript, ugh gross. But here we go.

> null >= 0
true
> null <= 0
true
> null == 0
false
> null == undefined
true
> null >= undefined
false
> undefined >= 0
false
> undefined <= 0
false
> undefined == 0
false
> null >= undefined
false
> 100/0
Infinity
> Infinity == undefined
false
> undefined >= Infinity
false
> undefined <= Infinity
false
> null <= Infinity
true
> null >= Infinity
false
> NaN == null
false
> NaN >= null
false
> NaN <= null
false
> "1"==null
false

Some more stupid stuff

> var point = {}
> point.point = point
> for(var x=0;x<1000;x++){ thingToEval+="point"; eval(thingToEval).x = x; if(x!=999){ thingToEval+="."}}
> point.x
999