Select from following answers:- Use toUpperCase() Function
- Use ToUpper Function
- Use Upper Function
- None of these.
- All Above
We will use toUpperCase() Function to capitalize all the characters in Javascript.
For Ex:-
<script type="text/javascript" language="javascript">
function capitalize_value()
{
var string = "vishal";
alert(string.toUpperCase());
}
</script>
Show Correct Answer
Asked In: Many Interviews |
Alert Moderator