Skip to content

Speedsterblack/js-for-react-native-11116918

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

js-for-react-native-11116918

Name: Gad Kwame Mensah Student ID: 11116918

This project consists of three tasks, implemented in JavaScript, to manipulate arrays and create user profiles.

Task 1: arrayManipulation.js

processArray: This function takes an array of numbers and returns a new array where each even number is squared, and each odd number is tripled.

formatArrayStrings: This function takes an array of strings and an array of numbers. It modifies each string based on its corresponding number: capitalizes the entire string if the number is even, and converts the string to lowercase if the number is odd

Task 2: userInfo.js createUserProfiles: This function takes an array of original names and an array of modified names from Task 1. It returns an array of objects, each containing the original name, modified name, and an auto-incremented id starting from 1.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors