What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-09-23 05:09:03
default value input date js
<!-- HTML --> <input type="date" id="theDate"> <script> // JQuery $(document).ready( function() { $('#theDate').val(new Date().toDateInputValue()); }); // Pure JS document.getElementById('theDate').v... Add solution -
Javascript 2021-09-20 18:42:04
javascript sum of all the multiples of 3 or 5 below 1000 running total
(() => { // sum35 :: Int -> Int const sum35 = n => { // The sum of all positive multiples of // 3 or 5 below n. const f = sumMults(n); return f(3) + f(5) - f(15); }; // sumMults ... Add solution -
Javascript 2021-09-19 07:58:03
Tribonacci Sequence in JavaScript
function tribonacci(signature,n){ for (var i = 0; i < n-3; i++) { // iterate n times signature.push(signature[i] + signature[i+1] + signature[i+2]); // add last 3 array items and push to trib } return signature.slice(0, n); //return trib - ... Add solution -
Javascript 2021-09-18 05:25:03
discord.js custom create channel
let channelName = args.slice(0).join(' '); //Arguments to set the channel name message.guild.channels.create(channelName, { type: "text", //This create a text channel, you can make a voice one too, by changing "text" to "v... Add solution
Best helpers
Cynthia
+5
Eve noonan
+5
Martinako
+5
Numeri
+5
John Weisz
+5
Rocky DeHart
+5
Tammy Lin
+5
SunnyHills
+5
Ishan Yadav
+5
Aown Ali
+5
Terry3497
+5
Xkcvk2511
+5
Jean Luis
+5