Git Product home page Git Product logo

js201's Introduction

JavaScript 201 - Programming Exercises

Programming exercises for a beginning JavaScript programmer.

These exercises use Strings, loops, Objects, and Arrays to solve logic problems.

Install

Make sure that Node.js and npm are installed. Then, from this directory type:

npm install

This will install a folder named node_modules/ into this folder.

Directions

You will be writing functions in the JavaScript files found in the exercises/ folder.

Write your functions and then run:

npm test

The goal is to get the test suite to pass all conditions. Good luck!

Continuously Run Test Suite

You may want to run the test suite anytime a file in exercises/ changes:

npm run watch

This command will continuously run the test suite and stop on the first failing test.

License

ISC License

js201's People

Contributors

aurmer avatar dependabot[bot] avatar oakmac avatar pandafulmanda avatar prphntm63 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

js201's Issues

Syntax error handling

The test suite is not returning the details of syntax errors. Students can go in circles due to the lack of feedback.

we need more basic loops exercises

// 1) declare an array with some strings
const animals = ["alligator", "zebra", "crocodile", "giraffe"]

// create an empty array (we will fill this with strings from the previous array)
let animalsWithoutZ = []

// 2) loop through "animals"

// 3) add every item in "animals" to "animalsWithoutZ" unless the animal name
//    contains the letter "z"
//    HINT: remember you can search within a string

// 4) return "animalsWithoutZ"

make caesar cipher optional

Students unnecessarily struggle with this exercise and I think it's learning value is negligible.

I think it should be optional.

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.