Café Sign with Escapes
JavaScript
20 pts
Café Sign with Escapes
Create one string variable sign that prints these three lines when you log it once:
Welcome to Ruta's Café Today: "Shai" and "Bun" Menu file: C:\menu\today
Use \n for the line breaks, escape the double quotes and the backslashes. Then print sign.length. Full expected output:
Welcome to Ruta's Café Today: "Shai" and "Bun" Menu file: C:\menu\today 71
Use exactly two console.log calls.
Checklist
- Create the string
signwith the exact text. - Use
\nfor the line breaks. - Print the sign and
sign.lengthwith two logs. - The output matches.
🔑 Solution
If you view the solution before passing, you earn half points for this exercise. You still need to type it and press Check to finish.
How it works, step by step
Point at a step to highlight its lines. Type the solution yourself and press Check answer to finish.
