English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
toUpperCase()The method converts the string to uppercase.
string.toUpperCase()
var str1 = "www.oldtoolbag.com"; var str2 = str1.toUpperCase();Test See‹/›
All browsers fully support the toUpperCase() method:
Method | |||||
toUpperCase() | Yes | Yes | Yes | Yes | Yes |
Return Value: | Represents the string converted to uppercase |
---|---|
JavaScript Version: | ECMAScript 1 |