Git Product home page Git Product logo

giz-pass-js's Introduction

GIZ bootcamp

Full-stack web development - JS pass task

Task to be passed by candidates of GIZ program.

1. Fork the repo
2. Clone the forked repo to your local machine
3. Commit your solution
4. push your solution to your forked repo
5. Send the link of your solution repo over the form

Instructions

  • Download code on your computer and open it within any favourite IDE.
  • The code is supposed to work as a bubble sort algorithm, that is used for sorting integers number of the given array in ASC order then again in DESC order. but there are several issues that making the code doesn’t achieve correctness with a good code design and style.

TO DO:

  1. Try to figure out the issue of the sorting algorithm, and fix it to work as expected.
  2. Change the code to be well-designed and well-styled.
  3. The “numbers” array in the code is mutable!, change a little bit in the code to keep the original one as-it (immutable) and print the new one.
  4. Read the numbers list from data.txt file, sort it in ASC order, then store it in a new file called output.txt

Hints:

  • If you don't know how the Bubble sort algorithm works in the simplest way, do a little search.
  • It’s preferable to have Node Js installed on your computer.
  • Always use the console to debug your code as the simplest debugging process.
  • Feel free to use any external package if you feel that you need it.
  • Make your code readable as much as you can.
  • Don’t forget to add and use the comments in your code and leave your notes for each issue you will fix.

giz-pass-js's People

Contributors

rabab-ali99 avatar fadiramzi avatar laith43d 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.