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 11:15:03
js get browser name and platform
var nVer = navigator.appVersion; var nAgt = navigator.userAgent; var browserName = navigator.appName; var fullVersion = ''+parseFloat(navigator.appVersion); var majorVersion = parseInt(navigator.appVersion,10); var nameOffset,verOffset,ix; // In Opera... 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-09-29 17:06:05
Modifing the Array values
//Modifying the Array values let colors = ["blue", "red", "black"]; //Higher Order Array function map() doesn't work //because it will be created a new element "x" //and the value of that element will be modified ... Add solution -
Other 2021-09-27 20:24:04
what is palindrome
function isPalindrome(sometext) { var replace = /[.,'!?\- \"]/g; //regex for what chars to ignore when determining if palindrome var text = sometext.replace(replace, '').toUpperCase(); //remove toUpperCase() for case-sensitive for (var i = 0; i... Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5