What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-10-03 18:13:07
capitalise first letter js
//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 -
Javascript 2021-10-03 12:03:04
javascript first letter uppercase
//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 -
-
Javascript 2021-10-01 00:37:03
how to capitalize first letter in 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 -
Javascript 2021-10-01 00:04:06
concat keys json
finalStr = '' Object.keys(obj).forEach(function(key) { if (obj[key].name === 'mountpoints') { // only get sizes for mountpoints var value = obj[key].value; Object.keys(value).forEach(function(name) { // add all sizes to string finalStr += ... Add solution