Git Product home page Git Product logo

cis-1090-project1-personal-dictionary's Introduction

CIS-1090 Project1

Personal Dictionary

First Steps

Remember to create a fork. The npm ci command will download the libraries we use, the npm run test command will run the tests.

Part One

The first part of this assignment is to begin implementing the personal dictionary component. This component is defined in the (currently empty!) personal-dictionary.js file.

In this file you are to define two functions, but you may leave their contents blank. These functions are to be named search and addWord. Both functions take a single parameter, the word to be searched for, or added to the personal dictionary, respectively. The search function will eventually return true if the dictionary contains the word, and false if it does not. The addWord function has no return value.

You should also declare an array named words in this module, and set it's value to an empty array.

The implementation (the inside) of this module has three things, the search and addWord function, and the words array.

The interface (the parts visible from the outside) should only have two things: the two functions.

Add an export statement at the bottom of the module, exporting these two functions.

Helpful Hints:

Part Two

Implement (write the code inside) the search and addWord function.

How do I add something to an array? Google it!

javascript add item to array

I am not being a pain in the butt here, Javascript has hundreds of built-in functions, and no one can remember them all.

You may do a simple linear search, no need to sort the array either - we discovered that it is totally fast enough for a small personal dictionary.

Once complete, all tests should pass

Remember to push it to GitHub

cis-1090-project1-personal-dictionary's People

Contributors

bkuker avatar ihadcode 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.