Master AI & Build your First Coding Portfolio with SkillReactor | Sign Up Now

Lesson 6 - Basic String Operations

6.2 Upper Case

Using the function toUpperCase(), you can convert a string to uppercase. Follow the example below.

let myStr = "hello, world!";
console.log(myStr.toUpperCase());

Try using a different string and convert it to uppercase.