Replies: 3 comments
-
Can I get more information on what you mean? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Yes, sure. Please run the following import chalk from 'chalk';
const msg = 'This text length should be 30.';
const msgLength = msg.length;
console.log(msg, "\tIndeed, it's:", msgLength);
const text = chalk.red(msg);
const textLength = text.length;
console.log(text, "\tUnfortunately, it is not; it's ", textLength, ". Why?"); |
Beta Was this translation helpful? Give feedback.
0 replies
-
I could be wrong but I think |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Example:
Beta Was this translation helpful? Give feedback.
All reactions