- Write a function testNum that takes a number as an argument and returns a Promise that tests if the value is less than or greater than the value 10.
const testNum = (number) => {
return new Promise((resolve, reject)=> {
number > 10 ? resolve(number + ' is greater than 10, success!') :
reject(number + ' is less than or eqaul to 10, error!')
})
}