function replaceDigits(val) { return val.toString().replace(/\d/g, '0-'); } function…
- User
function replaceDigits(val) { return val.toString().replace(/\d/g, '0-'); }
function minecraftCircle(x, y, z, radius, height, thickness, startDeg, endDeg, ms) { console.log( 'x:', replaceDigits(x), 'y:', replaceDigits(y), 'z:', replaceDigits(z) );
- Assistant
It looks like you started writing a function to replace digits in a value and a function related to creating a Minecraft circle, but your code snippet is incomplete.