Steve's Array Cheatsheet for JavaScript & Ruby
written by Steven on June 21, 2007
JavaScript
_array_.push(_thing to push_)
Ruby
_array_ << _thing to push_
Notes
- Although Array#push works in ruby, array#<< does not work in javascript.
(I just spent 45 minutes debugging this ;)
Learn how LessEverything built their consultancy to over $1,000,000 annual revenue at LessMoney Conference, June 7th in Tampa Florida. Each attendee will get early access to our upcoming ebook as well.
Leave a Comment
About Steven
Popular Articles
Subscribe

Steven Bristol has written code for the past 20 years. He like green vegetables and kittens, oh and butterflies too. He loves to throw ninja stars at his enemies.
