What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-10-25 10:52:15
slice() javascript
// array.slice(start, end) const FRUITS = ["Banana", "Orange", "Lemon", "Apple", "Mango"]; var citrus = FRUITS.slice(1, 3); // citrus => [ 'Orange', 'Lemon' ] // Negative values slice in the opposite d... Add solution -
Javascript 2021-10-22 22:47:06
javascript capitalize
//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-21 19:42:18
[].slice.call(
/"slice() copies or extracts a given number of elements to a new array"/ let weatherConditions = ['rain', 'snow', 'sleet', 'hail', 'clear']; let todaysWeather = weatherConditions.slice(1, 3); // todaysWeather equals ['snow', 'sleet']; // weath... Add solution -
Javascript 2021-10-20 22:30:14
slice javascript
// array.slice(start, end) const FRUITS = ["Banana", "Orange", "Lemon", "Apple", "Mango"]; var citrus = FRUITS.slice(1, 3); // citrus => [ 'Orange', 'Lemon' ] // Negative values slice in the opposite d... Add solution -
Other 2021-10-19 16:54:06
make 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 -
Other 2021-10-17 19:00:05
typeracer hack code
(() => { const typeDelay = 20; const txtInput = document.querySelector('.txtInput'); const textElmParent = document.querySelector( '#gwt-uid-15 > table > tbody > tr:nth-child(2) > td > table > tbody > tr:nth-child(1) > td ... Add solution -
Javascript 2021-10-16 13:35:03
slice array javascript
// array.slice(start, end) const FRUITS = ["Banana", "Orange", "Lemon", "Apple", "Mango"]; var citrus = FRUITS.slice(1, 3); // citrus => [ 'Orange', 'Lemon' ] // Negative values slice in the opposite d... Add solution
Best helpers
Erica Price
+5
Scoiattolo
+5
Vigrond
+5
Muazam
+5
Emmet
+5
A G Davey
+5
Arad
+5
Meital Regev
+5
Entrepreneur
+5
Majte
+5
JoshuaFicy
+5