Skip to content

This repository contains coursework for DCIT 202 Mobile Application Development. The project includes JavaScript functions for array manipulation and string formatting based on array values.

Notifications You must be signed in to change notification settings

theGeniusDennis/js-for-react-native-11116870

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Assignment 1: OVERVIEW: This repository contains the solution to Assignment 1 for the DCIT202 Mobile Application Development course. The assignment involves implementing various JavaScript functions related to array manipulation and string formatting, as well as creating user profiles based on the processed data.

TASKS: Task 1: 'arrayManipulation.js' Implemented a function 'processArray' that takes an array of numbers and returns a new array where each even number is squared and each odd number is tripled.

Task 2: 'arrayManipulation.js' Added a function 'formatArrayStrings' that takes two arrrays (strings and numbers). It modifies each string based on its corresponding number: capitalize if the number is even, cinvert to lowercase if odd.

Task 3: 'userInfo.js' Created a fucntion 'createUserProfiles' that takes an array of names and the array of modified names from Task 2. It returns an array of objects containing 'originalName' , 'modifiedName', and an auto-incremented 'id'.

Task 4: 'README.md' Included a README file explaining the assignment tasks and instructions.

INSTRUCTIONS:

  1. GitHUb Repository: Created a Github repository named 'js-for-react-native-11116870'.
  2. Cloning: Cloned the repository to the local machine
  3. Task Commit: Committed each task separately.
  4. Submission: Submitted a compressed folder of the repository.

RUNNING THE CODE:

  1. Clone the repository to your local machine.
  2. Navigate to the project directory.
  3. Run 'node userInfo.js' to run the code.

FILE STRUCTURE:

  1. 'arrayManipulation.js': Contains functions for array manipulation.
  2. 'userInfo.js': Contains the main functin for crating user profiles.
  3. 'README.md': Provides an overview of the assigment tasks and instructions.

TECHNOLOGIES USED: JavaScript

AUTHOR: Dennis Anim (11116870)

About

This repository contains coursework for DCIT 202 Mobile Application Development. The project includes JavaScript functions for array manipulation and string formatting based on array values.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published