feat: Added speed unit conversion functionality#1450
feat: Added speed unit conversion functionality#1450Hyraze wants to merge 2 commits intoTheAlgorithms:masterfrom
Conversation
appgurueu
left a comment
There was a problem hiding this comment.
We already have https://github.com/TheAlgorithms/JavaScript/blob/master/Conversions/LengthConversion.js, and I don't really see what this adds in contrast. If anything, you should generalize the "conversion" to take the unit table as a parameter, such that both speed and length conversions would be using the same code.
(Speed units actually consist of two units, though: a length unit divided by a time unit, and the code should ideally reflect that).
Got it. Will be sending the unit type as a parameter in the new common conversion.js Thank you. |
Describe your change:
Checklist:
Example:
UserProfile.jsis allowed butuserprofile.js,Userprofile.js,user-Profile.js,userProfile.jsare notFixes: #{$ISSUE_NO}.