4 ms·
I don't quite understand how this code works. Where does the `nil` come from? What operation are we performing on 3 that causes it to return `nil`?
by software_writer 3y ago
I don't quite understand how this code works. Where does the `nil` come from? What operation are we performing on 3 that causes it to return `nil`?
- breckenedge 3y ago1, 2, and 3 are being passed as lookups to the a hash. 3 is undefined on the hash, hence nil.
- software_writer 3y agoAh, that makes sense. Thank you!
- deleted 3y ago[deleted]