score:3

let num = [3, 2, 5, 3, 2, 5, 3, 45, 2, 3, 4, 2];

function myfunction(t){
  console.log(num.map(elem => elem + parseint(t.value)));
}
 <input type="number" onkeyup="myfunction(this)">

this is what you need right ?


Related Query

More Query from same tag