-6

Is there any method to captitalize a string in JavaScript? I want a JS equivalent of following Java:

String st = "aks"; String st1 = st.toUpperCase(); 
2
  • 4
    The fact that the code is almost identical shows that you clearly did not search for this before you posted... Commented Jan 6, 2011 at 7:26
  • Agreed with musicfreak, this stuff is simply not useful in SO. Please do some searching before posting (like googling "javascript toUpperCase". Commented Feb 15, 2011 at 3:57

1 Answer 1

7
var st="aks"; var st1 = st.toUpperCase(); 
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.