toUpperCase()


#1

// Log Codecademy in all uppercase letters
console.log(‘Codecademy’);

// Use a string method to log the following statment without whitespace at the beginning and end of it.
console.log(’ Remove whitespace ');
console.log(“Codeacademy”.toUpperCase());

I did the above code and it returned in upper case, but it says its incorrect? What is wrong?


#2

// Use a string method to log the following statment without whitespace at the beginning and end of it.

you didn’t use string.trim() to remove white spaces

hope it works.


#3

console.log("Codeacademy".toUpperCase());

It should be Codecademy not Codeacademy.


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.