'use strict';

/*
 * Create the `max` function that takes 2 number as arguments
 * and returns the greatest
 * You must not just use `Math.max`, make your own.
 * see: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/max
 *
 * @notions Functions, Ternary
 */

// Your code:

//* Begin of tests
const assert = require('assert');

function max(num1, num2){
    if(num1 > num2){
        return num1;
    }
    return num2;

assert.strictEqual(typeof max, 'function');
assert.strictEqual(max.length, 2);
assert.strictEqual(max.toString().includes('Math.max'), false);
assert.notStrictEqual(max, Math.max);
assert.strictEqual(max(0, -2), 0);
assert.strictEqual(max(-1, 10), 10);
assert.strictEqual(max(-13.2, -222), -13.2);
assert.strictEqual(max(132, 133), 133);
}
// End of tests */
