Hi, in the “Returning a Function” section of Dart Apprentice v1.1.0 PDF (page 123), the output of:
print(triple(6));
print(triple(14.0));
are:
18
42.0
But mine are:
18
42
I’ve checked the code I typed several times but cannot find any typo in it. Any idea what might cause the problem (assuming it is a problem)?
By the way I am using Dartpad based on Flutter 2.2.2 Dart SDK 2.13.3 with Null Safety ON (assuming this matters).
Thank you in advance for taking the time to answer my question.