Le Fri, 30 Dec 2011 18:31:30 +0100, Krinkle <krinklemail(a)gmail.com> a
écrit:
Since virtually any value other than null and
undefined is an object,
including numbers, strings and functions.
Much like ruby!
http://ruby-doc.org/core/Integer.html
$ irb
> 5.upto( 10 ) { |num| print "#{num}ber,"
}
5ber,6ber,7ber,8ber,9ber,10ber,=> 5
> print 4.even?
true=> nil
>
You can change the 'even?' behavior to do something else of course :D
--
Antoine "hashar" Musso