+ 1

Hello please does any one have an idea on how the require () method works in javascript?

20th Mar 2019, 4:23 PM
Codebeast**
Codebeast** - avatar
2 Antworten
+ 1
//Actually it's not from Standard JavaScript, it's from node.js where it is used to load modules
20th Mar 2019, 7:46 PM
Sudarshan Rai
Sudarshan Rai - avatar
+ 1
So how do i get to work?,here's the scenario,i have two js files in the same folder,one containing a dataset, and the other file contains methods that calculates correlation and regression for that dataset,how do i import the dataset file into the other file using require()?i do use node to run my js codes though..Shudarshan Rai 👑
20th Mar 2019, 7:52 PM
Codebeast**
Codebeast** - avatar