Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Guess number lab #2

Merged
merged 10 commits into from Jul 21, 2019
Merged

Guess number lab #2

merged 10 commits into from Jul 21, 2019

Conversation

27Nyappy
Copy link
Owner

No description provided.

}

// output when user guess too high, low or just right
if(compareNumbers(guess.value, 17) === 1) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

technically, guess.value should be returning you a string, you should use parseInt() to turn the string into an integer so we are truly comparing two numbers together: parseInt(guess.value)

@27Nyappy 27Nyappy merged commit 34201c0 into master Jul 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants