• + 0 comments

    Here is My solution

    if (a === 0) throw new Error('Zero Error')
    else if (a < 0) throw new Error('Negative Error')
    else return 'YES'