Using Closures Instead of Classes
Learn when to use closures instead of classes with the help of an example.
We'll cover the following...
Number formatter
For the final example, we will look at a simple number formatter. We want a formatter that can convert a floating-point number to a string, with a fixed number of decimal places.