stepstill.blogg.se

How to get small caps in word
How to get small caps in word













how to get small caps in word

#HOW TO GET SMALL CAPS IN WORD HOW TO#

How to capitalize only the first letter in a string in JavaScript console.log('I am shouting!'.toUpperCase()) Īny capital letters already in the string will not be affected and will remain unchanged when the toLowerCase() method gets called.

how to get small caps in word

This means that there will now be two strings: the original and the newly converted capitalized one. The string specified is converted to a new one whose contents consist of only all uppercase letters. The general syntax for calling the method looks like this: String.toUpper()Īs strings in JavaScript are immutable, the toLowerCase() method does not change the value of the string specified. The toUpperCase() method is similar to the toLowerCase() method but it instead converts the string value to uppercase.

how to get small caps in word

How to use the toUpperCase() method in JavaScript const anotherGreeting = 'GOOD MORNING!!' Ĭonsole.log(anotherGreeting.toLowerCase()) They are all then converted to lowercase when the toLowerCase() method is applied. The string in the example below consists of all capital letters. These letters preserve their original form. The string myGreeting consists of only one capital letter that gets converted to lowercase.Īny letters that are already lowercase are not affected by the toLowerCase() method, only uppercase ones. It means that the old, original string is not changed or affected in any way. The toLowerCase() method converts the string specified into a new one that consists of only lowercase letters and returns that value. The toLowerCase() method doesn't take in any parameters. The general syntax for the method looks like this: String.toLowerCase() The toLowerCase method converts a string to lowercase letters. Let's get started! How to use the toLowerCase() method in JavaScript We'll also go over how to make only the first letter in a word uppercase and how to make the first letter of every word in a sentence uppercase. This article explains how to convert a string to lowercase and uppercase characters.















How to get small caps in word