New to node how can I make these basic area functions async using node



This content originally appeared on DEV Community and was authored by FaithInErrors

`let areaCircle = (radius) => {
return Math.PI * radius * radius
}

let areaRect = (length, width) =>{
return (length * width)
}

exports.areaCircle = areaCircle
exports.areaRect = areaRect

`


This content originally appeared on DEV Community and was authored by FaithInErrors