Skip to content

Instantly share code, notes, and snippets.

@max-programming
Last active August 22, 2020 09:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save max-programming/5014dfeb2ad81fba30018c3c82d81991 to your computer and use it in GitHub Desktop.
Save max-programming/5014dfeb2ad81fba30018c3c82d81991 to your computer and use it in GitHub Desktop.

👋 Hello And Welcome

This challenge is about my blog post on Ternary Operator.

  1. Create a function that will take a number as an argument
  2. Check if the number is positive or negative in the function and return a string it
  3. If it is positive, return "Positive number", else return "Negative number"
  4. Use Ternary Operator to check that

You can write the solution in the replies and also on the blog.

Starter template:

function checkNumber(number) {
  return ________
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment