Skip to content

Tibor#34

Open
Tibor22 wants to merge 12 commits intoboolean-uk:mainfrom
Tibor22:main
Open

Tibor#34
Tibor22 wants to merge 12 commits intoboolean-uk:mainfrom
Tibor22:main

Conversation

@Tibor22
Copy link

@Tibor22 Tibor22 commented Mar 7, 2022

No description provided.

function isInRange(num, lower, upper) {
// TODO: write code in this function body to pass the tests

if (num >= lower && num <= upper) {
Copy link
Contributor

Choose a reason for hiding this comment

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

return ( num >= lower && num <= upper )

function seasonForMonth(monthName) {
// TODO: write code in this function body to pass the tests

switch (monthName) {
Copy link
Contributor

@shahzadnaeem shahzadnaeem Mar 9, 2022

Choose a reason for hiding this comment

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

case "January":
case "February":
case "December":
return "Winter";

Have a look at switch() statement syntax in MDN

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.

2 participants