Answers for "js array touppercase"

5

touppercase javascript array

const names = ['Ali', 'Atta', 'Alex', 'John'];

const uppercased = names.map(name => name.toUpperCase());

console.log(uppercased);

// ['ALI', 'ATTA', 'ALEX', 'JOHN']
Posted by: Guest on October-23-2020
0

how to convert array to uppercase in javascript

var a = ['this','is','test'];

a.map(f=>{ return f.toUpperCase(); });
Posted by: Guest on June-17-2020
6

js to uppercase

var string = "A string";

var upperCase = string.toUpperCase();
console.log(upperCase); // -> A STRING

var lowerCase = string.toLowerCase();
console.log(lowerCase); // -> a string
Posted by: Guest on July-17-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language