DEV Community

Discussion on: Javascript vs Ruby

Collapse
 
swiknaba profile image
Lud • Edited

In Ruby, try this 😁

'21' * 2

to keep it DRY and funny.

(then try the same in JS and compare!)

Collapse
 
swiknaba profile image
Lud

oh, btw. if you are still learning Ruby, read through github.com/rubocop-hq/rubocop. It will teach you many things AND already explains what is good/bad style for Ruby.