1 min readNov 28, 2019
Hi Alan,
I am glad that you are trying this out! I have tested your code with withinRange(“2.3.2”, “~2.3.3”)
and it returned true when it should actually return false.
My suggestions on your code would be
- try to be consistent and use only const and let, don’t use var
- write test cases using Jest based on the requirements
- refer to the requirements on https://devhints.io/semver
Keep coding and I hope you enjoy it!