6 ms·
When I said the two programs have the same behavior, I was simply referring to the end result--what they output. I understand how both languages work here. Ru
by showell30 15y ago
When I said the two programs have the same behavior, I was simply referring to the end result--what they output. I understand how both languages work here. Ruby solves a problem that simply doesn't exist in CS. In JS/CS "bar" never implicitly refers to "this.bar", so there's no ambiguity in the first place.