freeCodeCamp/curriculum/challenges/arabic/08-coding-interview-prep/rosetta-code/abundant-deficient-and-perf...

1.0 KiB

title id challengeType videoUrl localeTitle
Abundant, deficient and perfect number classifications 594810f028c0303b75339acd 5

Description

undefined

Instructions

undefined

Tests

tests:
  - text: ''
    testString: 'assert(typeof getDPA === "function", "<code>getDPA</code> is a function.");'
  - text: ''
    testString: 'assert(Array.isArray(getDPA(100)), "<code>getDPA</code> should return an array.");'
  - text: ''
    testString: 'assert(getDPA(100).length === 3, "<code>getDPA</code> return value should have a length of 3.");'
  - text: ''
    testString: 'assert.deepEqual(getDPA(20000), solution, "<code>getDPA(20000)</code> should equal [15043, 4, 4953]");'

Challenge Seed

function getDPA (num) {
  // Good luck!
}

After Test

console.info('after the test');

Solution

// solution required