Skip to content

Instantly share code, notes, and snippets.

@max-programming
Last active August 22, 2020 09:44
Embed
What would you like to do?

👋 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