3 ms·
Same here, in both JavaScript and Ruby. I guess single quotes are easier to type on standard keyboard setups, but I have never been a fan for some reason.
by baddox 11y ago
Same here, in both JavaScript and Ruby. I guess single quotes are easier to type on standard keyboard setups, but I have never been a fan for some reason.
- __derek__ 11y agoIn Ruby, at least, there's a functional difference. Using single-quotes is a good way to indicate that a thing is just a string and not a template.