Coder Social home page Coder Social logo

week-2-code-challenge's Introduction

Case Swapper

This project contains a function swapCase that swaps the case of alphabetic characters in a given string.

Installation

  1. Clone the repository: git clone https://github.com/Sed3Saaho/case-swapper.git
  2. Install dependencies: npm install

Usage

To use the swapCase function, import it into your JavaScript file and call it with the desired string.

const { swapCase } = require('./swapCase');

const inputString = "NairobiCounty";
const swappedString = swapCase(inputString);

console.log(swappedString);


# Array Generator

This project contains a function `generateArray` that generates an array of numbers within a specified range.

## Installation

1. Clone the repository: `git clone https://github.com/Sed3Saaho/array-generator.git`
2. Install dependencies: `npm install`

## Usage

To use the `generateArray` function, import it into your JavaScript file and call it with the desired start and end values.

```javascript
const { generateArray } = require('./generateArray');

const start = 61;
const end = 80;
const numbersInRange = generateArray(start, end);

console.log(numbersInRange);


# Prime Number Filter

This project contains a function `filterPrimeNumbers` that filters out non-prime numbers from an array.

## Installation

1. Clone the repository: `git clone https://github.com/Sed3Saaho/prime-number-filter.git`
2. Install dependencies: `npm install`

## Usage

To use the `filterPrimeNumbers` function, import it into your JavaScript file and pass an array of numbers as the argument.

```javascript
const { filterPrimeNumbers } = require('./filterPrimeNumbers');

const numbers = [60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70];
const primeNumbers = filterPrimeNumbers(numbers);

console.log(primeNumbers);

week-2-code-challenge's People

Contributors

sed3saaho avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.