What do you want to save?
Add Code snippet
New code examples
-
Other 2022-02-07 05:20:18
primefaces outputtext uppercase
Using JavaScript. <h:inputText ... onblur="value=value.toUpperCase()" /> Using JSF. <h:inputText ... converter="toUpperCaseConverter"> <f:ajax event="blur" render="@this" /> </h:inputTe... Add solution -
Javascript 2022-02-04 18:00:34
javascript alphabet to number
function convertLetterToNumber(str) { str = str.toUpperCase(); let out = 0, len = str.length; for (pos = 0; pos < len; pos++) { out += (str.charCodeAt(pos) - 64) * Math.pow(26, len - pos - 1); } return out; } convertLetterToNumber("... Add solution -
Javascript 2022-01-30 21:31:17
how to make a string in javascript
var abc = "abcdefghijklmnopqrstuvwxyz"; var esc = 'I don\'t \n know'; // \n new line var len = abc.length; // string length abc.indexOf("lmno"); // find substring, -1 if doesn't contain abc.lastIndexOf("lmn... Add solution -
Javascript 2022-01-26 05:02:14
find capital word in 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 -
Javascript 2022-01-24 01:05:43
display only initials from full name reactjs
var getInitials = function (string) { var names = string.split(' '), initials = names[0].substring(0, 1).toUpperCase(); if (names.length > 1) { initials += names[names.length - 1].substring(0, 1).toUpperCase(); } re... Add solution -
Java 2022-01-23 07:46:50
java 8 function supplier consumer
@Testpublic void whenNamesPresentUseBothConsumer(){ List<String> cities = Arrays.asList("Sydney", "Dhaka", "New York", "London"); Consumer<List<String>> upperCaseConsumer = list -> {... Add solution -
Javascript 2022-01-23 00:20:50
return first letter of string javascript in 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
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5