Skip to content

EdiscoKes/js-for-react-native-11137631

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

-js-for-react-native-11137631

ID : 11137631

Task 1: processArray

  • File: arrayManipulation.js
  • Description: This function takes an array of numbers as an argument and returns a new array where each even number is squared and each odd number is tripled.

Task 2: Add a formatArrayStrings function to arrayManipulation.js

File : arrayManipulation.js Description: formatArrayStrings function takes two arrays as arguments (an array of strings and an array of numbers processed by processArray) and modifies each string based on its corresponding number thus capitalizing the entire string if the number is even and converting the string to lowercase if the number is odd.

Task 3: Create a file named userInfo.js with a createUserProfiles function that takes an array of names and the array of modified names from Task 2 and returns an array of objects, each containing originalName, modifiedName, and id (auto-incremented starting from 1).

File : userInfo.js Description : A userInfo.js file was created. Inside the userInfo.js file a function named createUserProfiles was created. The createUserProfiles takes an array of names and the array of modified names from Task 2 and returns an array of objects, each containing originalName, modifiedName, and id which is auto-increased starting from 1.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors