Reputation: 137
I want to make a hangman game and I need to access the words with javascript. But where should I store these words? Is it directly with a const
or something else? Can you help me please?
Upvotes: 1
Views: 62
Reputation: 1914
What's wrong with this?
const words = ['word', 'words', 'wordy', 'worldly', ...]
If you show us the format your list of words is in we could provide a more specific solution.
Upvotes: 2