Please i would like a code review on the number guesser project

please review my code LINK

my compareGuesses function is not working to the desired output when checking which number is nearest to the target number and i dont know why

And if possible i would like to know to how and where to restrict 0-9 input with alert(’ invalid input ')



By the looks of it, that workspace is private so we cannot access it, you’ll have to update the privacy settings on the workspace first :slightly_smiling_face:

1 Like

sorry for the inconvenience
i changed it to public share
the link is

1 Like

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.