faqts : Computers : Programming : Languages : JavaScript : Language Core : Strings

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

30 of 33 people (91%) answered Yes
Recently 9 of 10 people (90%) answered Yes

Entry

How do I convert a String to upper case?

Mar 10th, 2000 10:25
Martin Honnen,


Strings have a built in method
  toUpperCase
for that so you call
  alert('string'.toUpperCase())
or
  var stringVar = 'string';
  stringVar = stringVar.toUpperCase();