You Deserve It!


**console.log('Your bill is ';**

i just wanted to ask about the code above.Im done in the "Building a Cash Register" activity and i notice something changed in the code above.
".toFixed(2)"? whats this for? i didnt put those codes and im curious what those code for.



The toFixed() method formats a number using fixed-point notation

see this docs


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.