Data.js mini framework for beginners

What is Data.js?

Data.js is a mini-framework that runs on Node.js. It is mainly programmed to work with arrays. This framework is able to display arrays in different formats and again give information about how much information is in the a…


This content originally appeared on DEV Community and was authored by Jahongir Sobirov

Data.js

What is Data.js?

Data.js is a mini-framework that runs on Node.js. It is mainly programmed to work with arrays. This framework is able to display arrays in different formats and again give information about how much information is in the array. Its syntax is very simple.

In Data.js we create a program called "subgroup of numbers"

We can download Data.js from github. The location of the downloaded folder: (all guides)

|___bin
      |___data.js
      |___test.js
|___docs
      |___config.yml
      |___index.md
|___LICENSE
|___README.md

We attach the data.js file in the bin folder to our program (Of course we can copy the bin folder from the uploaded folder to the folder we are creating).

const Data = require(".\bin\data.js"); //importing data.js

Now it's your turn to create the program:

const Data = require(".\bin\data.js");
var app = new Data([25,9,16,100],{
   get: "false",
   getLenght: false,
   join: false,
   copy: false,
   constructor: false,
   entries: false,
   reverse: false,
   sort: false,
   fill: false,
   shift: false,
   map: Math.sqrt,
   pop: false
});

Output:

[5,3,4,10] 


This content originally appeared on DEV Community and was authored by Jahongir Sobirov


Print Share Comment Cite Upload Translate Updates
APA

Jahongir Sobirov | Sciencx (2021-05-02T05:42:04+00:00) Data.js mini framework for beginners. Retrieved from https://www.scien.cx/2021/05/02/data-js-mini-framework-for-beginners/

MLA
" » Data.js mini framework for beginners." Jahongir Sobirov | Sciencx - Sunday May 2, 2021, https://www.scien.cx/2021/05/02/data-js-mini-framework-for-beginners/
HARVARD
Jahongir Sobirov | Sciencx Sunday May 2, 2021 » Data.js mini framework for beginners., viewed ,<https://www.scien.cx/2021/05/02/data-js-mini-framework-for-beginners/>
VANCOUVER
Jahongir Sobirov | Sciencx - » Data.js mini framework for beginners. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/05/02/data-js-mini-framework-for-beginners/
CHICAGO
" » Data.js mini framework for beginners." Jahongir Sobirov | Sciencx - Accessed . https://www.scien.cx/2021/05/02/data-js-mini-framework-for-beginners/
IEEE
" » Data.js mini framework for beginners." Jahongir Sobirov | Sciencx [Online]. Available: https://www.scien.cx/2021/05/02/data-js-mini-framework-for-beginners/. [Accessed: ]
rf:citation
» Data.js mini framework for beginners | Jahongir Sobirov | Sciencx | https://www.scien.cx/2021/05/02/data-js-mini-framework-for-beginners/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.