...

/

Exercise 2: Injecting Multiple Properties

Exercise 2: Injecting Multiple Properties

Solve another exercise to polish your skills of metaprogramming.

We'll cover the following...

Problem statement

In the following code, create custom properties to extract the integer part and the fractional part from a number.

Add two properties to the instances of ...