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

"max" should be "min" #4

Open
MarcHauser opened this issue Sep 2, 2016 · 2 comments
Open

"max" should be "min" #4

MarcHauser opened this issue Sep 2, 2016 · 2 comments

Comments

@MarcHauser
Copy link

The second example should be "min" instead of "max".
You can find the largest and the smallest value in a set of numbers.

Math.max(7, 2, 10, 5);
//=> 10

Math.max(7, 2, 10, 5);
//=> 2
@semmypurewal
Copy link
Owner

Thanks for reporting this! Which section is this in?

@MarcHauser
Copy link
Author

https://github.com/semmypurewal/BeginningJavaScript/blob/master/03-types/readme.md https://github.com/semmypurewal/BeginningJavaScript/blob/master/03-types/readme.md

change line 181 from

Math.max(7, 2, 10, 5);
//=> 2

to:

Math.min(7, 2, 10, 5);
//=> 2

Thanks for the

Learning Web App Development book and the Beginning Programming with JavaScript video. Both are admirable in their clarity and accessibility.

Marc Hauser

On Sep 14, 2016, at 10:26 AM, Semmy Purewal [email protected] wrote:

Thanks for reporting this! Which section is this in?


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub #4 (comment), or mute the thread https://github.com/notifications/unsubscribe-auth/AUCgnhC_BO8i7pdP6q-OBsmV0kBegsIPks5qqAQagaJpZM4JzoJ4.

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

No branches or pull requests

2 participants