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
|___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]
Top comments (13)
this post doesn't clarify much about the library, its goal, what it does, plus all I could think, after reading, is: lucky you, none of your folders or files start with an
n
,r
,t
, or other special chars, where a\
would mean something else ๐Everyone understands this article on its own. I did not say mini-framework in vain, my friend
The fact somebody wrote it's not super clear what this post is about kinda contradicts your reply though, isn't it?
More specifically:
but maybe I am just stupid ๐
I'm not arguing with you
It's not about arguing mate, it's about me hinting you maybe you can improve this post, as it doesn't provide much content, hence it doesn't really help people maybe interested in this.
You can ignore my comments, but then I'd argue this looks like you are using this space to promote one of your libraries, which is OK if it helps, not so OK if it's just for SEO purposes, imho.
People who want to learn this framework should read it from the flour help center :data-js.gitbook.io/data-js/
Totally agree, not quite sure what his angle is, but it's definitely not providing valuable content, or even content tbh.
OK sir
Why should I use it and not just the standard JavaScript ES6 methods?
Honestly my friend I tried to create a library in javascript but could not work with the modules on my computer so I chose NodeJS
I think this post is really helpful as since it's my first time of coming across data.js, I can say this helped me understand when and why I might want to use it in the future.
So I took an algorithm test and if frameworks were allowed, this would have been useful.
Ok