← Back to challenges

Pair Management

JavaScriptMediumlanguage_fundamentalsarrays

Instructions

Given two arguments, return an array which contains these two arguments.

Examples

makePair(1, 2) ➞ [1, 2]

makePair(51, 21) ➞ [51, 21]

makePair(512124, 215) ➞ [512124, 215]

Notes

N/A

javascript
Loading editor…
to run
Walks through the solution with reasoning and edge cases.
Next: Compare Strings by Count of Characters