File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed
exercises/01.expressions-and-output
02.problem.escaping-strings Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ console.log("Double quotes work too")
2424 follow consistent style rules. If you have one installed (like
2525 [ Prettier] ( https://prettier.io/ ) ), it may automatically change your quotes
2626 when you save the file. For example, it might convert double quotes to single
27- quotes. That's okay! The code will still work the same way.
27+ quotes. That's okay! The output stays the same either way.
2828</callout-info >
2929
3030🐨 Once you've completed the exercise, run ` node index.ts ` in the playground to
Original file line number Diff line number Diff line change @@ -49,4 +49,9 @@ console.log('Name:\tKody') // Prints with a tab between
4949💰 Remember: use ` \' ` to escape single quotes, ` \" ` to escape double quotes,
5050` \n ` for newlines, and ` \t ` for tabs!
5151
52+ <callout-info >
53+ The playground also prints some extra output from ` @kentcdodds/log-module ` .
54+ That's normal and not part of your ` console.log() ` calls.
55+ </callout-info >
56+
5257📜 [ Escape sequences on MDN] ( https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Lexical_grammar#escape_sequences )
Original file line number Diff line number Diff line change @@ -22,5 +22,6 @@ strings exactly as they are!
2222
2323<callout-warning >
2424 If you're using an AI editor, the editor might try to avoid the extra ` + `
25- because you can write this more easily without it.
25+ because you can write this more easily without it. The tests for this step
26+ check for ` + ` concatenation, so avoid template literals here.
2627</callout-warning >
You can’t perform that action at this time.
0 commit comments