News for hackers. Stuff that matters.
Re:Show HN: Learn and practice modern JavaScript by ficklepickle on Thursday January 03, 2019 @08:54PM (#18821340)
The behavior is slightly different. "\n" is a newline, '\n' is a backslash and an n.
Re:Show HN: Learn and practice modern JavaScript by lauritzsh on Friday January 04, 2019 @05:36AM (#18823057)
Not in JavaScript. \n is treated as a newline in both cases. Try it out in the console.