Untitled

mail@pastecode.io avatar
unknown
plain_text
21 days ago
190 B
2
Indexable
Never
const str = 'hello, world!';

// Uppercase conversion
const upperStr = str.toUpperCase();

// Red color output using ANSI escape codes
console.log('\x1b[31m' + upperStr + '\x1b[0m');
Leave a Comment