The function to use to round a number in JavaScript is called Math.round . console.log(Math.round(3.14)); // output: 3.
確定! 回上一頁