GithubHelp home page GithubHelp logo

tawnyblvd / extra-practice-questions Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jenesh/extra-practice-questions

0.0 1.0 1.0 55 KB

:point_right: Extra JavaScript practice questions for 6.2 Web for the students, by the students. :point_left:

JavaScript 100.00%

extra-practice-questions's Introduction

๐Ÿ‘‡ Extra Practice Questions (Unit 1) ๐Ÿ‘‡

This repositroy was created for anyone looking for more fun practice problems which will test your knowledge of things from Unit 1.

There's more?

๐Ÿฐ To use the repository simply ๐Ÿฐ

  1. Fork this repository
  2. Grab the clone link
  3. Then write git clone followed by the clone url from step 2
  4. After that cd followed by the folder name
  5. Make a new file touch youNameSolitions.js
  6. Copy the practiceQuestions.js file into a new file with your name
> cp practiceQuestions.js firstNameSolutions.js
  1. Lastly move the file with your name into the allSubmissions folder
> mv test.js allSubmissions/

โ—๏ธโ—๏ธโ—๏ธ To stay up to date with the repository โ—๏ธโ—๏ธโ—๏ธ

Do a git pull before editing the files and before submitting your work If it gives you an merge error go back to your files and accept current/incoming changes if not sure accept both and edit your file afterwards. Don't forget to git push again after accepting changes.

Cat typing

๐Ÿ“ Key things to note ๐Ÿ“

Make sure to read the comments regarding what to name your functions and to run the test simply uncomment out the function that is right under

Code here..

that starts with the word run, for example

runFlipMe();

There may or may not be a difficulty label on the problems because difficulty is abstract since a easy question might be hard for someone else and vice-versa.

So easy a caveman can do it


Making contributions / Adding your Questions

Everyone is welcome to create/add their own questions as well as the tests that corresponds with it.

โ“ Question format โ“

To add your question make sure to write it in a clear format. Some of the things to consider when writing your question are:

  • Name of the function (Very Important)
  • Input
  • Input Type (string, array, number, object etc.)
  • Output
  • Output Type (string, array, number, object etc.)
  • Certain methods to use or not to use for more of a challenge
  • Any hints you think might be needed to solve the problem

Always add your question(s) after the last question that appears which will be before the function TestCase()

๐Ÿงช Making the Test ๐Ÿงช

To make your test simple copy and paste a any test that looks like:

function runFlipMe() {
    let testCases = [
        new TestCase(['123', '321'], ['321', '123']),
        new TestCase(['010', '099'], ['010', '990']),
        new TestCase(['101', '202'], ['101', '202']),
        new TestCase(['-80', '-16'], ['-08', '-61']),
        new TestCase(['100.2', '200.1'], ['200.1', '100.2'])
    ]
    runTests("One", testCases, flipNumbers)
}

The key things you need to change are:

  1. Name of the function function giveMeName()
  2. All of the new TestCase([...]) (more on that below)
  3. Lastly change the name of the function again with the same name as step 1 where it says changeMe
runTests("One", testCases, changeMe)

You can do it

๐Ÿ‘€ Changing the Test Cases ๐Ÿ‘€

For the test cases the only thing you need to change are the parameters inside the TestCase().

TestCase( input, output )

For input you can write any input values that you would pass into the function making sure the type is exactly the same as you intended it to be.

Also, for the Output make sure the type will make the test pass. Best way to make sure the tests are valid is to solve the problem yourself and run the test with all tests that says you have passed.

  • The test cases only takes in one parameter right now so be make sure to solve the problem it only takes in one parameter.
  • Write at least one TestCase() but do try to add more than one for any niche cases the function needs to solve.

๐Ÿ‘ Final Words ๐Ÿ‘

Lastly, feel free to update ME (meaning the README.md file) for any errors or better explanations on the steps.

This repository was made to help everybody in the class get better in javascipt. Feel free to put any questions you find fun, easy, difficult etc. to solve.

You got this

extra-practice-questions's People

Contributors

aminescodes avatar jenesh avatar joseph-p-pasaoa avatar lakerfan1994 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.