5 ms·
Thanks - that's a decent explanation for favouring one over the other. I rather dislike "best practices" that don't provide any explanation of what they are re
by arethuza 8y ago
Thanks - that's a decent explanation for favouring one over the other.
I rather dislike "best practices" that don't provide any explanation of what they are recommending.
- jrockway 8y agoI 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.