Giter Site home page Giter Site logo

basic-javascript-algorithm's Introduction

Node.js

Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine. For more information on using Node.js, see the [Node.js Website][].

In this repository there are basic examples of algorithms using the Javascript language and Node.js

Content:

  • Task 1

    • showArr.js
      • Show all item on Array
      • Push item to Array
      • Delete item from Array
      • Change value on Item property
  • Task 2

    • dataShorting.js
      • Smallest data.
      • The biggest data.
      • Data sorted from smallest to largest data.
      • Data sorted from the largest to the smallest data.
    • decimalBinary.js
      • Conversion of decimal numbers to binary.
    • imaginatifTree.js
      • Calculate tree height in Y years with an initial height of X meters. Provided that the tree only grows 1 m in autumn and is twice as tall as the tree in spring.
    • palinDrome.js
      • Find how many words / phrases from a string be it left or right.
    • primTriangle.js
      • Make right triangles with each row showing prime numbers from the start.
    • simpleMath.js
      • Displays the number of instant noodles a child purchases with Rp. 50,000, where the price of instant noodles is Rp. 2,500 with the promotion of every purchase of 4 instant noodles will get a bonus of 1 instant noodle.
  • Task 3

    • libApp.js
      • Displays the status of a book if given the title parameter of the book.
      • Displays a list of books available for borrowing.
    • printerMachine.js
      • Two arrays are provided, namely the letter array (string) and the command array (boolean). If the command array contains true, then letters that have the same index in the letter array will be printed, and vice versa.
    • spreadOperator.js
      • Edit the array of object data using spread operator.
    • statisTika.js
      • look for the mean, median, and mode values
  • Task 4

    • countArray.js
      • Read the array of numbers and add up all the members of the array so that the results are only one digit.
    • transposeMatrice.js
      • Programs that have the parameters of a matrix (2-dimensional array) and have the output in the form of transpose of the matrix.
    • matriceMultiple.js
      • Program that has 2 matrix parameters and has the output in the form of the product of the two matrices.


Copyright © 2019 by Andi Mashdarul Khair

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.