xxxxxxxxxx44
var assert = require('assert');function maxProductOfThree(unsorted) { return unsorted;}try { assert.deepEqual(maxProductOfThree([0, 1, 2, 3]), 6); console.log('PASSED: ' + 'maxProductOfThree[0, 1, 2, 3] should equal 6');} catch (err) { console.log(err);}try { assert.deepEqual(maxProductOfThree([-12, -7, -1, 11, 17]), 1428); console.log( 'PASSED: ' + 'maxProductOfThree([-12, -7, -1, 11, 17]) should equal 1428' );} catch (err) { console.log(err);}try { assert.deepEqual(maxProductOfThree([0, 4, -9, 19, 7, -5]), 855);OUTPUT
Results will appear here.
