+ 1
Hello please does any one have an idea on how the require () method works in javascript?
2 Réponses
+ 1
//Actually it's not from Standard JavaScript, it's from node.js where it is used to load modules
+ 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 👑