I wonder if it is possible to declare 'const exch' as empty first since I need that variable to be global for a loop function?
The below does not seem to work?
const exch;
exch = new ccxt.kortux ({ enableRateLimit: true })
I wonder if it is possible to declare 'const exch' as empty first since I need that variable to be global for a loop function?
The below does not seem to work?
const exch;
exch = new ccxt.kortux ({ enableRateLimit: true })
Change your code to
let exch;
exch = new ccxt.kortux ({ enableRateLimit: true })
or even better:
const exch = new ccxt.kortux ({ enableRateLimit: true })
const
declarations are not able to be redefined, let
declarations are.