What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-10-06 11:13:04
javascript consecutive numbers in array
/** * Given an array of number, group algebraic sequences with d=1 * [1,2,3,4,5,6] => true * [1,2,4,5,6] => false */ var arr = [1,2,4,5,6]; const differenceAry = arr.slice(1).map(function(n, i) { return n - arr[i]; }) const isDifference= dif... Add solution -
Javascript 2021-10-05 07:55:03
simple parallax button scrolling jquery codepen
/* jQuery codes for smooth scrolling. The following code is from https://css-tricks.com/snippets/jquery/smooth-scrolling/*/$(function() { $('a[href*=#]:not([href=#])').click(function() { if (location.pathname.replace(/^\//, '') == this.pathname.repl... 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 -
Other 2021-10-04 04:26:06
first letter string uppercase 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-03 18:43:02
simple kick command discord.js v12
//start by defining discord.js const Discord = require('discord.js'); //command handlers exports.run = async (client, message, args) => { if (!message.member.hasPermission('KICK_MEMBERS')) return message.reply('You cannot kick members') let mem... Add solution -
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-09-30 08:41:03
how to sepaarte text in object javascript
let data = 'Child 1 First Name: Ali\nChild 1 Gender: Female\nChild 1 Hair Color: Blonde\nChild 1 Hair Style: Wavy\nChild 1 Skin Tone: Tan\nChild 2 First Name: Morgan \nChild 2 Gender: Female\nChild 2 Hair Color: Brown\nChild 2 Hair Style: Ponytail\nChild ... 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