Today, I encountered some confusion when my app started acting strangely. It turns out that I mistakenly assigned a string to a number without receiving any error alerts. Any thoughts on why this happened?
id:number;
Later on:
this.id = ActiveRoute.params.id; //(which was actually a string)
//perform some iteration (n=this.id) times
I noticed that my iteration only executed once, even though I would have expected to be notified of the mismatch in data types when assigning to id.
(edited attribute originally based from memory^)