Your student ID: [11303690]
This repository contains JavaScript files created for React Native development.
- File:
arrayManipulation.js
- Description: Created a JavaScript file named
arrayManipulation.js
. Implemented a function namedprocessArray
that takes an array of numbers and returns a new array where each even number is squared and each odd number is tripled.
- File:
arrayManipulation.js
- Description: Added a function named
formatArrayStrings
toarrayManipulation.js
. This function takes two arrays as arguments: an array of strings and an array of numbers processed byprocessArray
. It modifies each string based on its corresponding number by capitalizing the entire string if the number is even and converting the string to lowercase if the number is odd.
- File:
userInfo.js
- Description: Created a file named
userInfo.js
. Implemented a function namedcreateUserProfiles
that takes an array of names and the array of modified names from Task 2. Returned an array of objects, each containing originalName, modifiedName, and id (auto-incremented starting from 1).
- File:
README.md
- Description: Added a README file to the repository. Included my student ID and a brief explanation of each task.