This content originally appeared on DEV Community and was authored by Jahongir Sobirov
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

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/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.