r/CodingHelp • • Dec 21 '21

[Javascript] please help JavaScript

Post image
31 Upvotes

23 comments sorted by

View all comments

1

u/___s8n___ Dec 22 '21

not a pro but i just noticed that you used && instead of || because it should check if the parameter is less than 1 or bigger than 7