function sign(nb)
{
    if(nb > 0)
        return 1
    if(nb < 0)
        return -1
    if(nb === 0)
        return 0
}
/*
 * Create the `sign` function that takes one number argument
 * and return 1 if the number is positive, -1 if the number is negative
 * and 0 if the number is exactly 0
 * You must not just use `Math.sign`, make your own.
 * see: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/sign
 *
 * @notions Functions, If-Else
 */
Create the `sign` function that takes one number argument
and return 1 if the number is positive, -1 if the number is negative
and 0 if the number is exactly 0
You must not just use `Math.sign`, make your own.

@notions Functions, If-Else
Create the ` sign ` function that takes one number argument and return 1 if the number is positive - 1 if the number is negative and 0 if the number is exactly 0 You must not just use ` Math . sign ` make your own . @notions Functions If - Else
function sign(nb)
{
    if(nb > 0)
        return 1
    if(nb < 0)
        return -1
    if(nb === 0)
        return 0
}
function sign ( nb ) { if ( nb > 0 ) return 1 if ( nb < 0 ) return - 1 if ( nb === 0 ) return 0 }
Create the `sign` function that takes one number argument
 and return 1 if the number is positive, -1 if the number is negative
 and 0 if the number is exactly 0
 You must not just use `Math.sign`, make your own.
Create the ` sign ` function that takes one number argument and return 1 if the number is positive - 1 if the number is negative and 0 if the number is exactly 0 You must not just use ` Math . sign ` make your own .