Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

uppercase javascript

var str = "Hello World!";
var res = str.toUpperCase();  //HELLO WORLD!
Comment

uppercase javascript

let str = "Hello World!";
let res = str.toUpperCase();  
console.log(res) //HELLO WORLD!
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

uppercase javascript using function

function changeToUpperCase(founder) {
  return founder.toUpperCase();
}

// calling the function 
const result = changeToUpperCase("Quincy Larson");

// printing the result to the console
console.log(result);

// Output: QUINCY LARSON
Comment

JS .toUpperCase

.toUpperCase()

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

how to convert string to uppercase in javascript

const upperCase = (string) => {
  const newText = string.toUpperCase();
  return newText;
};
Comment

javascript uppercase function

const str = "This is a very long string!";

// This will return => "THIS IS A VERY LONG STRING!"
console.log(str.toUpperCase());
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 :: How to convert a canvas to an image javascript 
Javascript :: convert string to object javascript 
Javascript :: javascript string to array 
Javascript :: cors blocking communication 
Javascript :: how to make first letter uppercase in javascript 
Javascript :: js replace diacritics 
Javascript :: mongodb check if collection exists 
Javascript :: node powershell 
Javascript :: javascript add dom disabled 
Javascript :: how to change package name in react native 
Javascript :: js set iframe code 
Javascript :: class component react 
Javascript :: javascript filter array by groups of highest 
Javascript :: add line number in javascript 
Javascript :: updatable time js 
Javascript :: javascript add update query parameter to url 
Javascript :: array spread operator in javascript 
Javascript :: array pop 
Javascript :: javascript set value html element by class 
Javascript :: buildpack for nodejs 
Javascript :: ajax get request parameters 
Javascript :: mui date picker remove underline 
Javascript :: jquery function done 
Javascript :: running a function in a function javascript 
Javascript :: create primary key in mongodb 
Javascript :: es6 spread 
Javascript :: use queryselectro to select by form name 
Javascript :: react hooks send data from child to parent 
Javascript :: Using the reverse method to Reverse an Array 
Javascript :: random color js 
ADD CONTENT
Topic
Content
Source link
Name
6+5 =