Skip to content

This repository contains three JavaScript programs; a function for swapping the case of characters in a string, an array generating program and a prime number array generator.

Notifications You must be signed in to change notification settings

cyndimustapha/phase-1-wk2-code-challenge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

phase-1-wk2-code-challenge

Date, 30/03/2024

By Cyndi Marren Mustapha

SwapCase Function

This is a javascript function that takes a string as input and swaps the case of each character. It splits the string into an array of characters, then iterates through each character in the array, converting uppercase letters to lowercase and vice versa, and finally joins the characters back into a string.

Array Generator Function

This is a javascript function that takes two numbers as input and generates the array of numbers between them.

Prime Number Generator

This is a javascript function that takes an array of numbers as input and returns a new array containing only the prime numbers of from the original array in the same order as they appear in the input array.

Installation

You use git clone to be able to download the documents in github.

Installation Requirements

Git

Installation instruction

git clone https://github.com/cyndimustapha/phase-1-wk2-code-challenge.git

Live Link

https://cyndimustapha.github.io/phase-1-wk2-code-challenge/

Technologies used

JavaScript

Support and contact details

https://github.com/cyndimustapha

License

The content of this site is licensed under the MIT license Copyright (c) 2018.

About

This repository contains three JavaScript programs; a function for swapping the case of characters in a string, an array generating program and a prime number array generator.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published