Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

javascript capitalize array

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

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

console.log(uppercased);

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

PREVIOUS NEXT
Code Example
Javascript :: font ligature vs code 
Javascript :: semantic ui dropdown value 
Javascript :: react useeffect async javascript 
Javascript :: hide and show on button click in react js functional component 
Javascript :: import applymiddleware 
Javascript :: Properly upgrade node using nvm 
Javascript :: js get current timezone offset 
Javascript :: sort array without changing original array 
Javascript :: (node:5547) UnhandledPromiseRejectionWarning: TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".json" 
Javascript :: angular bind checkbox 
Javascript :: cypress input value should be 
Javascript :: sweetalert close on custom button click 
Javascript :: get $_get in javascript 
Javascript :: golang parse jason 
Javascript :: node js server get images from folder 
Javascript :: javascript get now date yyyy-mm-dd 
Javascript :: genius api 
Javascript :: javascript date is an object 
Javascript :: addclass to elementref angular 
Javascript :: change no to string in js 
Javascript :: how to find and remove object from array in javascript 
Javascript :: js enums class 
Javascript :: how to do radio button validation in jquery 
Javascript :: for range python javascript 
Javascript :: [Error - 10:52:45 PM] Failed to load jshint library 
Javascript :: regex pattern for strong password 
Javascript :: method to look for objects in arrays by id 
Javascript :: unshift 
Javascript :: js remove element from array 
Javascript :: using .includes for an array of objects js 
ADD CONTENT
Topic
Content
Source link
Name
8+7 =