3 ms·
I mean, it's because it doesn't matter. Picking one is valuable for consistency (no odd diffs when refactoring). Which one you pick doesn't matter.
by jrockway 8y ago
I mean, it's because it doesn't matter. Picking one is valuable for consistency (no odd diffs when refactoring). Which one you pick doesn't matter.
- chrisweekly 8y ago... Unless you would prefer to skip the extra keypress required for ".
- ficklepickle 8y agoThe behavior is slightly different. "\n" is a newline, '\n' is a backslash and an n.
- lauritzsh 8y agoNot in JavaScript. \n is treated as a newline in both cases. Try it out in the console.