- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_Module_Export.js
More file actions
Latest commit
31 lines (28 loc) · 750 Bytes
/
Copy pathtest_Module_Export.js
File metadata and controls
31 lines (28 loc) · 750 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
constNETWORKS_LOOKUP=newMap([
["1","Ethereum"],
["3","Ropsten"],
["4","Tinkeyby"],
["5","Goerli"],
["2a","Kovan"],
["42","Kovan"],
["137","Polygon"],
["31337","Hardhat"],
["80001","Mumbai"]
]);
constNETWORKS_LOOKUP_too=newMap([
["1","Ethereum"],
["3","Ropsten"],
["4","Tinkeyby"],
["5","Goerli"],
["2a","Kovan"],
["42","Kovan"],
["137","Polygon"],
["31337","Hardhat"],
["80001","Mumbai"]
]);
// two exports to demonstrate that it's module.export object that is exported and why
//destructuring is used/necessary with require, even if only exporting/requiring one object/var
module.exports={
NETWORKS_LOOKUP,
NETWORKS_LOOKUP_too
}