79.createPromise

Write a function named createPromise that receives a number as a parameter.

The function should return a promise that resolves to:

  • the string It's positive! if the number is positive
  • the string It's negative! if the number is negative

Example 1

Input

number

=

Output

a Promise that resolves with the value below:

Example 2

Input

number

=

Output

a Promise that resolves with the value below: