What do you want to save?
Add Code snippet
New code examples
-
Other 2021-11-18 13:44:14
filter array object by its elements
const things = { thing: [ { place: 'here', name: 'stuff' }, { place: 'there', name: 'morestuff1' }, { place: 'there', name: 'morestuff2' }, ], }; const removeDuplicates = (array, key) => { return array.reduce((arr, item) => { ... Add solution -
Other 2021-11-18 04:33:21
cash register freecodecamp
const checkCashRegister = (price, cash, cid) => { const UNIT_AMOUNT = { "PENNY": .01, "NICKEL": .05, "DIME": .10, "QUARTER": .25, "ONE": 1.00, "FIVE": 5.00, "TEN&quo... Add solution -
Java 2021-11-17 16:24:18
Exception in thread "main" java.lang.NegativeArraySizeException at Main.main(Main.java:21)
import java.io.BufferedReader; import java.io.FileReader; import java.io.IOException; import java.util.StringTokenizer; public class Main { public static void main(String[] args) { String line ; String startTime ; String endTime; Stri... Add solution -
Javascript 2021-11-14 21:26:21
How to Build a Reading Progress Bar With CSS and JavaScript
// Reading Progress bar in Html, Css and Js // Html Part <div id="progress-bar"></div> // Css Part #progress-bar { --scrollAmount: 0%; background-image: linear-gradient(to right, #4facfe 0%, #00f2fe 100%); width: var(--scrollAm... Add solution