Last active
September 2, 2021 17:38
-
-
Save leodevbro/ed92479f9c4604dad027d34a72890cc9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const myFunction = (inputArray) => { | |
for (let i = 0; i < inputArray.length; i += 1) { | |
inputArray[i] += 1; | |
} | |
return(inputArray); | |
}; | |
const mySuperArray = [4, 8, 15, 29]; | |
console.log(myFunction(mySuperArray)); // უნდა დაბეჭდოს 5, 9, 16, 30 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment