Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

touppercase javascript array

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

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

console.log(uppercased);

// ['ALI', 'ATTA', 'ALEX', 'JOHN']
Comment

to uppercase js

const string = "A string";

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

const lowerCase = string.toLowerCase();
console.log(lowerCase); // -> a string
Comment

JS .toUpperCase

.toUpperCase()

// Like this:
alert("In upper case: " + "my string".toUpperCase()); // In upper case: MY STRING
Comment

The toUpperCase JavaScript string method

//toUpperCase is a string method that returns the uppercased version of a specified string.
// We will use this to capitalize the first letter:

const firstLetter = "f"

const firstLetterCap = firstLetter.toUpperCase()
// F
Comment

PREVIOUS NEXT
Code Example
Javascript :: javascript how to check if element is visible on screen 
Javascript :: redux dev tools 
Javascript :: insert variable in string javascript 
Javascript :: get element ref react 
Javascript :: how to change css style on click 
Javascript :: remove property from object js 
Javascript :: event.target data-target 
Javascript :: Warning: Prop `className` did not match. Client and server rendered different classes . 
Javascript :: semantic ui dropdown value react 
Javascript :: virtual properties in mongoose model 
Javascript :: how to kill all node processes in windows 
Javascript :: on function change body background image 
Javascript :: remove element from array in usestate 
Javascript :: Javascript how to compare three numbers 
Javascript :: Auto scroll to bottom of div angular 
Javascript :: js string to regex 
Javascript :: compare two dates using moment 
Javascript :: node red admin password setting 
Javascript :: nested for loop javascript 
Javascript :: get element class javascript 
Javascript :: sort object by key value javascript 
Javascript :: function js format money 
Javascript :: lodash angular 9 
Javascript :: react native shadow above 
Javascript :: onchange js 
Javascript :: javascript getminutes 2 digits 
Javascript :: axios set body 
Javascript :: angularjs download xml file 
Javascript :: jquery get aria-label value 
Javascript :: javascript htmlentities 
ADD CONTENT
Topic
Content
Source link
Name
8+9 =