JavaScript:实现求数字的绝对值算法
/**
* @function abs
* @description This script will find the absolute value of a number.
* @param {number} num - The input integer
* @return {number} - Absolute number of num.
* @example abs(-10) = 10
* @example abs(50) = 50
* @example abs(0) = 0
*/
const abs = (num) => {
const v