Yngvarr

Generation

generate functionMon, 20 Feb 2023

copy to buffer

function copyToBuffer(a, b) { let buffer = []; for (let i = a; i <= b; i++) { buffer.push(i); } return buffer; } copyToBuffer(1, 10)

Javascript
Generate More

Questions about programming?Chat with your personal AI assistant