They are, and this is quite idiomatic JavaScript. Maybe I've been writing too much C++.