What do you want to save?
Add Code snippet
New code examples
-
Python 2021-10-10 04:48:10
capitalize string python
# Python string capitalization string = "this isn't a #Standard Sntence." string.capitalize() # "This isn't a #standard sentence." string.upper() # "THIS ISN'T A #STANDARD SENTENCE." string.lower() # "this isn't a #stand... Add solution -
Javascript 2021-10-10 02:57:03
capitalize algorithm
function capitalize1(str) { const arrOfWords = str.split(" "); const arrOfWordsCased = []; for (let i = 0; i < arrOfWords.length; i++) { const word = arrOfWords[i]; arrOfWordsCased.push(word[0].toUpperCase() + word.slice(1).toL... Add solution -
Javascript 2021-10-09 13:07:06
capitalize a string javascript
//capitalize only the first letter of the string. function capitalizeFirstLetter(string) { return string.charAt(0).toUpperCase() + string.slice(1); } //capitalize all words of a string. function capitalizeWords(string) { return string.repl... Add solution -
Other 2021-10-08 18:48:05
runtime errors in python
Misspelled or incorrectly capitalized variable and function names -Attempts to perform operations (such as math operations) on data of the wrong type (ex. attempting to subtract two variables that hold string values) -Dividing by zero -Attempts to use a ... Add solution -
Other 2021-10-07 10:25:04
string capitalize first letter
//capitalize only the first letter of the string. function capitalizeFirstLetter(string) { return string.charAt(0).toUpperCase() + string.slice(1); } //capitalize all words of a string. function capitalizeWords(string) { return string.repl... Add solution -
Html 2021-10-06 03:57:06
html uppercase
.uppercase { text-transform: uppercase; } #example { text-transform: none; /* No capitalization, the text renders as it is (default) */ text-transform: capitalize; /* Transforms the first character of each word to uppercase */ text-transform: upp... Add solution -
Javascript 2021-10-04 05:57:07
tocapitalize javascript
//capitalize only the first letter of the string. function capitalizeFirstLetter(string) { return string.charAt(0).toUpperCase() + string.slice(1); } //capitalize all words of a string. function capitalizeWords(string) { return string.repl... Add solution