hurt you // good var age = 15; age // 15 age = 16; age // 16 age = 17; age // 17 // no point var age = 15; age // 15 var age = 16; age // 16 var age = 17; age // 17 Thursday, September 10, 2009
= 'John'; var colors = ['red', 'green', 'blue']; var person = {name:'John', age:15}; var cool = true; var foo = function() { return 'bar'; } Thursday, September 10, 2009
= 5; 5 += a += 5; 10 a = a + 5; -= a -= 5; 0 a = a - 5; *= a *= 2; 10 a = a * 2; /= a /= 2; 2.5 a = a / 2; %= a %= 4; 1 a = a % 4; Thursday, September 10, 2009
== 5 TRUE equal to value and type true === 1 FALSE != not equal 5 != 4 TRUE > greater than 5 > 4 TRUE < less than 5 < 4 FALSE >= greater than or equal to 5 >= 5 TRUE <= less than or equal to 5 <= 5 TRUE == === http://www.w3schools.com/JS/js_comparisons.asp Thursday, September 10, 2009