184k views
3 votes
Write a JavaScript statement to convert "Information Technology" to uppercase.

1 Answer

4 votes

Answer:

The JavaScript statement is

var str1 = "Information Technology";

var result = str1.toUpperCase();

Step-by-step explanation:

JavaScript is used to validate the client side it means it provide the client side validation.

Following are the function of JavaScript that converted the string into uppercase.

function val()

{

var str1 = "Information Technology ";

var result = str1.toUpperCase();

}

The toUpperCase() function convert the string into uppercase in JavaScript

OUTPUT

INFORMATION TECHNOLOGY

User Kctang
by
8.1k points