You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
String in playground does not compile successfully. When there are new lines in string I tried to console log the value, the new lines weren't there.
Code
Output
Repro:
Go to Handbook -> Basic Types -> String example Both examples
Navigate to playground
append console.log(sentence) at the end of the script
Click Run
The Output does not match the code
Code
let fullName: string = `Bob Bobbington`;
let age: number = 37;
let sentence: string = `Hello, my name is ${fullName}.
I'll be ${age + 1} years old next month.`;
console.log(sentence)
// A *self-contained* demonstration of the problem follows...// Test this by running `tsc` on the command-line, rather than through another build tool such as Gulp, Webpack, etc.
Expected behavior:
[LOG]: "Hello, my name is Bob Bobbington.
I'll be 38 years old next month." Actual behavior:
[LOG]: "Hello, my name is Bob Bobbington. I'll be 38 years old next month."
The text was updated successfully, but these errors were encountered:
String in playground does not compile successfully. When there are new lines in string I tried to console log the value, the new lines weren't there.
Code
Output
Repro:
Code
Expected behavior:
[LOG]: "Hello, my name is Bob Bobbington.
I'll be 38 years old next month."
Actual behavior:
[LOG]: "Hello, my name is Bob Bobbington. I'll be 38 years old next month."
The text was updated successfully, but these errors were encountered: