function calcWeight(perimeter, length) { if(perimeter <= 0 || length <= 0) { throw new Error('Érvénytelen paraméter'); } return perimeter*perimeter*length/11877 } export {calcWeight}