Skip to main content Accessibility Feedback

Strings

String.toUpperCase()

Transform all text in a string to uppercase.

var text = 'This sentence has some MIXED CASE LeTTeRs in it.';

// returns "THIS SENTENCE HAS SOME MIXED CASE LETTERS IN IT."
var upper = text.toUpperCase();

Works back to at least IE6.