What do you want to save?
Add Code snippet
New code examples
-
Other 2021-11-21 04:42:12
how to change to input of a form dynamically
Chance: <input type="text" name="chance" value="" onkeyup="document.querySelector('input[name=payout]').value=this.value?1/this.value*98:''"> <br/><br/>Payout: <input type="text" n... Add solution -
Javascript 2021-11-20 09:32:34
how to make a calculator websiteJS
let add =(...params) => { let sum = 0; params.forEach(el =>{ sum = sum + parseInt(el); }) return sum } document.querySelector('.add').addEventListener('click' , function (e) { const adder = document.querySelector('.addin... Add solution -
Javascript 2021-11-19 12:52:40
how to draw horizontal line in canvas
const canvas = document.querySelector('.main-canvas'); const ctx = canvas.getContext('2d'); let lineWidth = 33; let totalWidth = canvas.width; let middle = canvas.width / 2; ctx.beginPath(); ctx.moveTo(0, middle); ctx.lineTo(totalWidth, middle); ctx.str... Add solution -
Javascript 2021-11-17 18:52:22
how to print a list in javascript
var array = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'.split(''); for (var i = 0; i < array.length; i++) { var str = ''; for (var j = 0; j <= i; j++) { if (array[j] == 'E') str += '3'; else str += array[j]; } document.querySelector('span').innerHT... Add solution
Best helpers
Ranking is empty