I am writing a simple program that uses a object full of dictionary words. I want to import that object from a different file as it is very large. When trying to import it I
You try this. Hope it helps
const 'your_variable' = require('your_required_module or file_path')
In your case
const dict = require( './words_dictionary')