What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-11-09 14:31:18
first letter tuUppercase
//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-11-07 14:45:18
discord.js v12 command ban
if (!message.member.hasPermission("BAN_MEMBERS")) return message.channel.send("Invalid Permissions") let User = message.guild.member(message.mentions.users.first()) || message.guild.members.get(args[0]) if (!User) return message.channe... Add solution -
Javascript 2021-11-07 13:04:17
js subarray
// 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
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5