JSFiddle: https://jsfiddle.net/NodToNothing/ehk24y50/
Fiddles: https://jsfiddle.net/user/NodToNothing/fiddles/
Exercise 6 was a retirement calculator. Amusingly, I can see in that last Fiddle where I'm reusing Vue code and leaving in bits, like the default being Scooter, where it doesn't matter because I'm working with numerics, not strings. So....ignore those parts. At the very least, I don't want to hear about it because it doesn't matter except for elegance/purists. It's not like I have someone sitting nearby to code review my hobby activities.
I did learn a bit more about the difference between computed properties and functions in Vue, so that was useful in the context of this snippet. No methods in there, but....that's because I really didn't need them once I started playing around a little more.
The code...less than in some of the others. Vue takes a lot of the work out of things:
No comments:
Post a Comment