Finally, as the toFixed() method returns a string value, we convert this into a float through use of the parseFloat function. Method 2.
確定! 回上一頁