Fionna Chan
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!

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Fionna Chan
Fionna Chan

Written by Fionna Chan

Frontend Unicorn. I 💖 CSS & JavaScript. My brain occasionally runs out of memory so I need to pen down my thoughts. ✨💻🦄🌈.y.at

Responses (1)

Write a response