You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rachel Rivera edited this page Jan 18, 2015
·
1 revision
We discussed briefly how we like some of the implicit type conversion that happens in JavaScript. We need to decide exactly what we want to coerce. (example of coercion seen below; undefined -> false)
// the following script alerts "Goodbye"varx=undefined;if(x){alert("Hello");}else{alert("Goodbye");}
Syntax that distinguishes for loops with a counter from for loops without