freeCodeCamp/curriculum/challenges/arabic/08-coding-interview-prep/rosetta-code/hailstone-sequence.arabic.md

898 B

title id challengeType videoUrl localeTitle
Hailstone sequence 595608ff8bcd7a50bd490181 5

Description

undefined

Instructions

undefined

Tests

tests:
  - text: ''
    testString: 'assert(typeof hailstoneSequence === "function", "<code>hailstoneSequence</code> is a function.");'
  - text: ''
    testString: 'assert.deepEqual(hailstoneSequence(), res, "<code>hailstoneSequence()</code> should return <code>[[27,82,41,124,8,4,2,1], [351, 77031]]</code>");'

Challenge Seed

// noprotect
function hailstoneSequence () {
  const res = [];
  // Good luck!

  return res;
}

After Test

console.info('after the test');

Solution

// solution required