Say no to hardcoding
Create a function that receives a number and return the output as shown in the examples.
Here is your arrow: →
Sample Code:
function noHardcode(num) {
// Enter your logic here...
}
Examples:
Input: 3
Output: 'There are 3 arrows→→→'
Explanation: There are 3 arrows.
Input: 0
Output: 'There are 0 arrow'
Explanation: There are 0 arrow.